Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No template exists to render the document at url '/'

In Umbraco, why does one get this error on a new deployment or machine that is pointing to an existing umbraco database and existing content?

Page not found

No template exists to render the document at url '/'.

In addition, no template exists to render the custom 404.

This page can be replaced with a custom 404. Check the documentation for "custom 404".

This page is intentionally left ugly ;-)

like image 268
David d C e Freitas Avatar asked Oct 02 '22 07:10

David d C e Freitas


2 Answers

One other thing to check is that if the page is published you have a template selected for the page or you will also get a 404 error.

like image 163
ProNotion Avatar answered Oct 13 '22 10:10

ProNotion


The reason it was doing that was because the domain name wasn't setup correctly. I was using a custom domain to host the site, and umbraco was obviously not matching the incoming request to a site in the CMS.

By going to the Site and right clicking -> Culture and Hostnames, I could set the hostname.

As per this answer: Umbraco configured with IIS 7 having hard time with the site URL?

Did you set your hostname in Umbraco?

Right click on the site root in your solution and click "Culture and hostnames"

right click

Fill out your hostnames and save

culture and hostnames

like image 39
David d C e Freitas Avatar answered Oct 13 '22 12:10

David d C e Freitas