I have a .NET 3.5 Web application on VS 2008 SP1 running on Vista Ultimate 32 SP1. I created an Application under the Default Web Site. So the url to the app is \"http://localho
open IIS7 (run > inetmgr) and go to the Feature view. Open the ISAPI and CGI Restrictions section and check if your .Net version has the correct restriction (for example, if you're working with 4.0 is should be on "Allowed")
I had same problem and solved it. You can try following: navigate to the root folder of your web application and find file that has ".csproj.user" extension ad delete it. Close all instances of Visual Studio and start again. Then hit F5. Otherwise hit CTRL+ALT+P and attach to w3wc.exe process. Hope it helps.
One more common problem is that site or application path is not started.
Just managed to fix this on my dev machine: I've got UrlScan installed and had to add DEBUG to the list of AllowVerbs. Hopefully this might give you something else to go on?
Installing Urlscan and changing the urlscan.ini with these changes solved the problem.
In ALLOWEXTENSIONS Section add .aspx and in ALLOWVERBS Section add DEBUG.
Don't forget to restart IIS.
For those encountering this with Visual-Studio 2012 or 2013 and/or Windows 8 or 10 do the following.
You have to add .Net 3.5 (or 4.5) to your Turn Windows Features on or off window. You get to it via:
Control Panel -> Programs -> Turn Windows Features on or off
Click the Asp.Net 3.5
and the Asp.Net 4.5
check box in the IIS > WWW Service > Application Development Features
folder.