Search code examples
visual-studio-2010visual-studiovisual-studio-2012iis-7visual-studio-debugging

The Web Server Could Not Find the Requested Resource visual studio debugging


Issue

I have a .net 4.0 Web Application running in visual studio 2012, every time I go to debug the site i'm receiving the following error:

The Web Server Could Not Find the Requested Resource


What I've tried

I've followed microsoft's website with solutions: msdn

  1. From a command prompt window, run the following command: systemroot\Microsoft.NET\Framework\ versionNumber \aspnet_regiis -i
  2. I've also attempted to remove the .csproj.user files
  3. Since we use Source Control i've deleted all items, the site and apppool and reconfigured from scratch.
  4. AppPool is set to allow 32-bit applications

All to no avail...Anyone have a solution that might solve this visual studio debugging nightmare for me?


Solution

  • Steps:

    1. Close all solutions in Visual Studio
    2. open IIS7 (run > inetmgr)
    3. Click your top node (computer name)
    4. Open the "ISAPI and CGI Restrictions" option
    5. check if your .Net version has the correct restriction (for example, if you're working with 4.0 is should be on "Allowed")