The Web Server Could Not Find the Requested Resource

后端 未结 6 1232

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

相关标签:
6条回答
  • 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")

    0 讨论(0)
  • 2021-02-11 22:30

    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.

    0 讨论(0)
  • 2021-02-11 22:32

    One more common problem is that site or application path is not started.

    0 讨论(0)
  • 2021-02-11 22:35

    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?

    0 讨论(0)
  • 2021-02-11 22:35

    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.

    0 讨论(0)
  • 2021-02-11 22:44

    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

    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)
提交回复
热议问题