locked
Unable to Start Debugging - Web Server Could Not Find Requested Resource RRS feed

  • Question

  • User-1057847799 posted

    Hello,

    I have been banging my head on this issue today and am at my wits end.  Hopefully one of you knows the resolution.

    ISSUE:
    I have a 2005 Visual Studio C# project  that will not run locally on my LocalHost web server.  It keeps giving me the error "Unable to start debugging on the web server.  The web server could not find the requested resource."  This only happens when I change the project properties to run on http://localhost/<website>.  If I run from Visual Studio Development Server, it runs fine.

    I have tried the following:

    • Re-registering all .NET versions from command window
    • Set my Application Pool to "ASP.NET v4.0 Classic", "ASP.NET v4.0" and "DefaultAppPool"
    • Removed and reinstalled IIS 7
    • Turned on Windows Authentication in IIS Manager

    I even built a brand new empty project with only a Default.aspx page in it, and it fails for same reason.

    SYSTEM:
    Windows Vista Ultimate SP 2
    IIS 8
    Visual Studio 2005

    NOTES:

    • Visual Studio 2008 and Visual Studio 2010 Beta 2 are installed on the same box.
    • I have to run on LocalHost as debugging does not work in Visual Studio Development Server

    I really have tried every Bing/Google article I have come across today.  My head is hurting from pounding it against my desk, any help is appreciated.

    Thanks
    Jay

    Wednesday, January 6, 2010 8:45 PM

Answers

  • User-532524509 posted

    u r using VS2005 and framework is 4.0 or something else so first register iis for the correct version.

    run again aspnet_regiis it will solve your problem.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe -u

    then used

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe -i

    Refer to this link..

    1) http://support.microsoft.com/kb/814717 

    2) http://geekswithblogs.net/TimH/archive/2006/05/29/80002.aspx 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 28, 2010 3:58 AM

All replies

  • User162050988 posted

    You can try following: navigate to the root folder of your web application and find file that has ".csproj.user" extension ad delete it. Then hit F5. Otherwise hit CTRL+ALT+P and attach to w3wc.exe process. Hope it helps.


    Thursday, January 7, 2010 4:32 AM
  • User-1057847799 posted

    Thanks, tried that but didn't even let me F5 without a error.  I attached the screenshot of what popped up.

    Thursday, January 7, 2010 5:49 PM
  • User1452680134 posted

    refer tis:

    http://forums.iis.net/t/1162666.aspx

    http://forums.iis.net/t/1162664.aspx

    http://forums.asp.net/t/1480233.aspx

    http://forums.iis.net/p/1149449/1869918.aspx

    Tuesday, January 26, 2010 6:19 AM
  • User-532524509 posted

    u r using VS2005 and framework is 4.0 or something else so first register iis for the correct version.

    run again aspnet_regiis it will solve your problem.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe -u

    then used

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\ aspnet_regiis.exe -i

    Refer to this link..

    1) http://support.microsoft.com/kb/814717 

    2) http://geekswithblogs.net/TimH/archive/2006/05/29/80002.aspx 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, January 28, 2010 3:58 AM
  • User-1057847799 posted

    Thanks jitendramcu, this fixed my issue!!

    Monday, February 1, 2010 2:01 PM