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

asp.netiis-7.5netvisual-studio-2008visual-studio-debugging

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..

Best Answer

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)