No physical template file was found for template Home
Hello,
I have just managed to deploy my Umbraco site from Visual Studio to the hosting site, but I am getting an error below.
Any idea?
///////////////////////////////////// E R R O R ///////////////////////////////////////////
Server Error in '/' Application.
No physical template file was found for template Home
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details:
System.Exception: No physical template file was found for template Home
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
However, it works fine on my local machine and I have checked the Templates in Umbraco back office and the Home template does exist there. So, the problem only occurs on the hosting site after deployment.
Yo are right, the template files (Home.cshtml and others) were missing in the Views folder on the hosting site.
Do you have any idea of why Visual Studio Publish (Web Deploy) tool did not deploy them to the hosting?
Or in other words, is there any place (Web.config or other file) where one can specify what to deploy to the hosting and what not to?
Now I can actually see my Umbraco page in my hosting site, BUT it is being shown without any pictures, fonts or styles, only text, see it below. Do you know why?
No physical template file was found for template Home
Hello,
I have just managed to deploy my Umbraco site from Visual Studio to the hosting site, but I am getting an error below.
Any idea?
///////////////////////////////////// E R R O R ///////////////////////////////////////////
Server Error in '/' Application.
No physical template file was found for template Home
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Exception: No physical template file was found for template Home
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
.....
///////////////////////////////////////////////////////////////////////////////
However, it works fine on my local machine and I have checked the Templates in Umbraco back office and the Home template does exist there. So, the problem only occurs on the hosting site after deployment.
Hi Erudit
Can you check please do you have this template on the server?
And if it's there check please access to views folder. Should be "Modify / Full control" permission on 'views' folder.
Thanks,
Alex
Hi Alex!
Thank you very much!
Yo are right, the template files (Home.cshtml and others) were missing in the Views folder on the hosting site.
Do you have any idea of why Visual Studio Publish (Web Deploy) tool did not deploy them to the hosting?
Or in other words, is there any place (Web.config or other file) where one can specify what to deploy to the hosting and what not to?
Now I can actually see my Umbraco page in my hosting site, BUT it is being shown without any pictures, fonts or styles, only text, see it below. Do you know why?
It looks like media and style files are missing too, can you check please?
You are right, Alex! The folders Media and Css were missing. Now I have copied them to the hosting and it works fine. Finally :) Thank you very much!
You are welcome, glad that you solved this issue!
is working on a reply...