Deployed Umbraco 12, getting "No physical template file was found for template {Template}" in error log
Hello, I'm trying to deploy an Umbraco 12 site to production. I republished all pages, but going to any page takes me to my not found page, and the Umbraco log is full of "No physical template file was found for template {Template}" errors for any page I go to. The templates are there. I can navigate to and view them in the backoffice with no problems. Any ideas as to what is going on? The IIS_IUSRS user group has full permissions to the Umbraco directory.
Managed to figure out the issue. I had Umbraco set to production mode, but
didn't remove the <RazorCompileOnBuild> and <RazorCompileOnPublish> properties from the project file. After doing that everything works perfectly.
Deployed Umbraco 12, getting "No physical template file was found for template {Template}" in error log
Hello, I'm trying to deploy an Umbraco 12 site to production. I republished all pages, but going to any page takes me to my not found page, and the Umbraco log is full of "No physical template file was found for template {Template}" errors for any page I go to. The templates are there. I can navigate to and view them in the backoffice with no problems. Any ideas as to what is going on? The IIS_IUSRS user group has full permissions to the Umbraco directory.
Managed to figure out the issue. I had Umbraco set to production mode, but didn't remove the
<RazorCompileOnBuild>
and<RazorCompileOnPublish>
properties from the project file. After doing that everything works perfectly.Thanks for posting your own answer.
Just leaving a link to the documentation which might be useful to anyone else who stumbles across it: https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes#production-mode
is working on a reply...