Description: The type of page you have requested is not served because it has been explicitly forbidden. The extension '.cshtml' may be incorrect. Please review the URL below and make sure that it is spelled correctly. Requested URL: /spa/index.cshtml http://pluralsight.com/training Single Page Apps JumpStart I publish a DiscountASP hosting and generates this error Now place this: <security> <requestFiltering> <fileExtensions> <remove fileExtension=".cshtml" /> <add fileExtension=".cshtml" allowed="true" /> </fileExtensions> </requestFiltering> </security> And no, the error persists <appSettings> <add key="webpages:Enabled" value="true" /> </appSettings> And no, the error persists
Requested URL: /spa/index.cshtml makes no sense to me. If this is an MVC application then a valid request would be a request to a controller action or registered route, not directly to razor view code as Requested URL: /spa/index.cshtml suggests.
Im having the same issue, im not using MVC routing with a controller beacuse this is a SPA. I'ts just using razor to serve the .cshtml page. Anyone have a way to properly upload a SPA done in this way?