Sunday, November 18, 2012

Unable to start debugging on the web server

Error :

Error while trying to run project: Unable to start debugging on the web server. Server side-error occurred on sending debug HTTP request.

Make sure the server is operating correctly. Verify there are no syntax errors in web.config by doing a Debug.Start Without Debugging. You may also want to refer to the ASP.NET and ATL Server debugging topic in the online documentation.

Solution:

Try the following:

1. Restart the PC.

(IF ABOVE SOLUTION NOT WORKS, THEN MOVE AHEAD)

2. Reset the iis from command prompt. i.e., iisreset

(IF ABOVE SOLUTION NOT WORKS, THEN MOVE AHEAD)

3. From Internet Information Service  (IIS Manager). Right click the project and click remove button to remove the project. And then click create button to create it again.

(IF ABOVE SOLUTION NOT WORKS, THEN MOVE AHEAD)

4. Uninstall the IIS from the command prompt as shown below:

%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe –u

and then install it again

%SYSTEMROOT%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe –i

(IF ABOVE SOLUTION NOT WORKS, THEN MOVE AHEAD)

5. Backup the project and then from Internet Information Service  (IIS Manager). Right click the project and click delete so that the project will delete physically from the IIS root directory.
Then reset the IIS using iisreset command in the command prompt.
Then copy the backup folder to the root directory and right click project and then click create button to create the project. Then check it,  sure it will work perfectly.