layout.cshtml compilation error #49
After upgrading number of applications to version 0.5.9.0, one of my applications now results in the following error after being deployed to our IIS web server (8). The error does not occur running locally with IISExpress:
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0103: The name 'ApplicationPath' does not exist in the current context
Source File: c:\inetpub\wwwroot\WebFred\App\Main\views\layout\layout.cshtml Line: 22
I checked the versions of all DLLs on the server and they are correct.
Another project upgraded at the same time works correctly. Is there anything I can look at that might help resolve this issue?
Your view should be inherited from AbpWebViewPage. This is done by web.config file. In template: https://github.com/aspnetboilerplate/as ... web.config
And MySpaProjectWebViewPageBase is inherited from AbpWebViewPage.
If you can't fix it share location of the cshtml file that cause exception.
Lastly, you can remove the like and it will be work unless you publish your web site into a virtual directory under iis.