Unable to start program 'http://localhost/Default.aspx'. VS2010

前端 未结 15 2096
猫巷女王i
猫巷女王i 2021-02-08 17:05

I cannot start my website from Visual Studio 2010 anymore.

For a few days I cannot start my project in a web browser using F5. When I open my web application directly by

相关标签:
15条回答
  • 2021-02-08 17:52

    I solved in this way:

    1. Right click on a aspx page
    2. Browse with set internal browser as default
    3. Remove the previous default browser
    4. Add %programfiles(x86)%\internet Explorer\iexplore.exe
    5. Set this choice as default
    0 讨论(0)
  • 2021-02-08 17:54

    Does it work if you start it with [CTRL]+[F5] which runs without the debugger?

    If so, then you have an issue with the debugger auto-attaching to the web server. I would check that debugging is enabled for your web project - a warning that usually crops up automatically from VS when it detects that a project is not built in Debug mode.

    This is not as simple as switching the project configuration over to Release, because the DLL that the debugger is moaning about is one of the dynamically generated ones originated by Asp.Net itself.

    Typically you should have, in your web.config:

    <configuration>
      <system.web>
        <compilation debug="true" >
        </compilation
      <system.web>
    <configuration>
    

    (Along with any other stuff in <configuration> and <system.web> nodes).

    There's also the possibility that Asp.Net debugging is not, for some reason, enabled.

    Check out this msdn article on debugging asp.net applications in VS2010 for more information.

    Note that if this is VS010 express, then you won't be able to debug - as confirmed by the aforementioned link; but since you way it used to work then I guess that's not your problem.

    Update

    Since that hasn't worked - you can try emptying the Temporary ASP.Net files folder. Easiest first is to do an iisreset. Then navigate to C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files and delete everything in it. I've had issues in the past where the Asp.Net binaries don't get refreshed and so when I'm debugging it moans that the files are out of date.

    0 讨论(0)
  • 2021-02-08 17:54

    Had same problem, answer for me was to remove Avast Free AV. Everything worked for a year with avast free up until a week or so ago, uninstalling it fixed the problem.

    0 讨论(0)
  • 2021-02-08 17:55

    When I ran into this problem (using IE 11) I noticed that iexplore was open about a hundred times in the task manager. After killing them all I was able to open my project just fine.

    Since then, I have made a .bat file with this code: taskkill /F /IM iexplore.exe /T

    so now I just run the .bat when I get that error. (alternatively you could run that code from the cmd)

    0 讨论(0)
  • 2021-02-08 17:57

    I just ran into this problem in Visual Studio 2013. I had to enable Anonymous Authentication.

    Click on the project node in solution explorer. Hit F4 to show the properties window. Change the Anonymous Authentication option to Enabled.

    0 讨论(0)
  • 2021-02-08 17:57

    I easily resolved this problem by enabling script debugging in the browser.

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