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

后端 未结 10 3224
猫巷女王i
猫巷女王i 2021-02-20 12:17

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 debu

相关标签:
10条回答
  • 2021-02-20 12:51

    Also, be sure that the URL you're configuring in Visual Studio matches your Host Headers (Edit Bindings) in IIS. This tripped me up for about an hour this morning before I realized my very stupid error.

    0 讨论(0)
  • 2021-02-20 12:52

    Go to your web project's properties, then the "web" tab, then make sure that you're using the Visual Studio Development Server and not Local IIS or the custom webserver. I'm on VS2010 with Win7 and another developer was developing using a custom webserver URL and not the VS Dev Server

    0 讨论(0)
  • 2021-02-20 12:56

    This happened to me today. Turned out to be that the default website was stopped in iis. I had been working on a second website that didn't use it for a long time. Simple fix but took me a while to see it!

    0 讨论(0)
  • 2021-02-20 13:03

    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.

    0 讨论(0)
  • 2021-02-20 13:04

    Sounds like you are trying to develop on IIS and not iis express or development server. If you are using asp.net mvc 4, make sure that the Application Pool is framework 4. If not just make sure that your app pool it matches your asp.net mvc version.

    0 讨论(0)
  • 2021-02-20 13:04

    Having maxRequestLength or maxAllowedContentLength set to a ridiculously large or small value will also trigger this error.

    0 讨论(0)
提交回复
热议问题