ASP.NET 2.0 error: Unable to start debugging on the web server.

The following error may occur when trying to run/debug an ASP.NET 2.0 web app, when the web server is not configured properly:

"Unable to start debugging on the web server. The web server is not configured correctly. See help for common configuration errors. Running the web page outside of the debugger may provide further information."

This is usually caused because of one or both of the following problems:
The directory the web app resides in has not been registered as a web application.
The correct ASP.NET version has not been set for the web app (note that this cannot be set until 1. has been sorted out).
To fix problem 1:

Open the IIS admin app.
Right click on your app's directory (/virtual dir) and select Properties.
On the Directory tab, under Application Settings, next to Application Name there will be a 'Create' button - click it. Once the dir has been registered as a web app then this button will say 'Remove'.
Click Apply (or OK).

To fix problem 2:

Open the IIS admin app.
Right click on your app's directory (/virtual dir) and select Properties.
Select the ASP.NET tab.
Select the correct ASP.NET version. Note that this field is disabled if the dir has not been set as an application (see above).
Click Apply (or OK).

To Fix problem 3:
1. Right click on the folder - "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files".
2. Select 'Properties'
3. Select the tab page - 'Security'
4. Click on 'Add' button
5. Click on 'Location' button
6. Choose your computer name.
7. click OK button
8. Click on 'Find Now' button
9. From the list, select 'ASPNET'
10.Click OK.
11. Now check the check box - 'Full Control'.
12. Click OK
13. Start debugging ur application

Yorum Gönder

0 Yorumlar

Ad Code

Responsive Advertisement