There is a possibility that there is no web.config file for the project or there is no Execute permission for the project.
If you already have a web.config file, double check it’s well-formedness.
If the web.config file is missing, add one to the directory that contains the ASP.NET application. You can copy one from the numerous samples applications available with the framework installation.
Make sure that the following section reads like this:
<compilation defaultLanguage='c#' debug='true' />
On the other hand, if your project already has a Web.config file, and the above section is set as specified, follow these steps to set the Execute Permissions property for the project folder:
- Start Internet Services Manager, and then click the project that you are trying to debug.
- Right-click the project, and then click Properties.
- Click the Directory tab.
- If None is selected in the Execute Permissions list, click Scripts only, and then click Apply