Asp.net-mvc – Unable to start debugging on the web server. The web server could not find the requested resource

asp.net-mvcdebuggingiis

I'm having this error trying to debug my ASP.NET MVC app. I've set the app to "Use Local IIS Web server", and selected ASP.NET as the debugger. Running the site without debugging works just fine, but when I try to debug, I got this error:

Unable to start debugging on the web server. The web server could not find the requested source.

I'm using Visual Web Developer 2008 Express Edition.

Does anyone know how to fix this error? Thank you.

Best Answer

For those encountering this with Visual-Studio 2012 and/or Windows 8 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

enter image description here

Click the Asp.Net 3.5 and the Asp.Net 4.5 check box in the IIS > WWW Service > Application Development Features folder.