I have looked through other posts but none seem to answer what I need.
- I created an empty site in WebMatrix (ASP.NET)
- I opened that site in VWD 2013
- I hit F5 and it runs fine on a URL such as http://local.com:59833/ContentPage.cshtml
I go to http://local.com/cscsu_bi/ContentPage.cshtml and it doesn't work with the error below
Server Error in '/' Application.
This type of page is not served.
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: /cscsu_bi/ContentPage.cshtml
The web.config file is as follows
<?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="webpages:Enabled" value="true" /> </appSettings> <system.web> <compilation debug="true" targetFramework="4.0" /> </system.web> </configuration>
I am on Windows 7. Is there anything obvious I'm doing wrong?
Thanks