简体   繁体   中英

Setting start page when debugging ASP.NET not working

I am using Visual Studio 2012.

In my solution explorer I would normally right click on a ASPX file and click on " Set as Start Page ". When running the website, it would then start with that page.

All of a sudden, no matter what page I select to start, running the project opens http://localhost:13713/Default (which doesn't exist). Even if I manually type in the path to the ASPX page during the debug session, it'll just return back to http://localhost:13713/Default .

Does anyone know why this is happening?

I'm not sure of the underlying problem, but one thing to try is to right-click on the root website project file in the Solution Explorer, select the "Property Pages" option then "Start Options" and specify your "default.aspx" (or whatever page you want) as the Specific Page option.

Hope this helps.

Not sure what happened here, but the problem went away after restarting. The magical restart!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM