Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to start debugging on the web server. Unable to connect to the webserver

I am running Visual Studio 2008, IIS 7.5 on Windows 7 x32. I am able to run the ASP.NET web site in IIS 7.5 without debugging just fine, but when I press F5 to debug it, I get:

Unable to start debugging on the web server. Unable to connect to the webserver. Verify that the web server is running and that incoming http requests are not blocked by a firewall..

like image 829
Rohit Khurana Avatar asked Aug 12 '13 13:08

Rohit Khurana


People also ask

How do I enable debugging in web config?

In the Web. config file, locate the compilation element. Debugging is enabled when the debug attribute in the compilation element is set to true. Change the debug attribute to false to disable debugging for that application.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.


1 Answers

In VS, right click on your web project --> Properties Go to the Web tab.

Make sure the appropriate radio button is selected (Use VS Dev Server, Use Local IIS Web Server, etc)

After a computer freeze I've had that value change on me.

Another thing to try:

run "iisreset" from an administrative command prompt (basically just restarts the IIS service)

like image 192
isopropanol Avatar answered Oct 13 '22 09:10

isopropanol