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

前端 未结 15 1987
猫巷女王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:59

    I had this exact problem with Visual Studio 2008. The solution was to set the default web browser that VS uses to a real browser (e.g. IE) and not the "Internal Web Browser".

    1. Right click on an ASPX file in your project and select "Browser With...". This lets you select the default browser to use when you select the "View in Browser" option and for when you debug/run the app (this is key).
    2. Select your favourite browser (i.e "Internet Explorer") and click on "Set as Default". Do not pick "Internal Web Browser".
    3. Debug away! Your app should come up in your browser now and debug as normal.

提交回复
热议问题