How do you set the startup page for debugging in an ASP.NET MVC application? Ask Question

How do you set the startup page for debugging in an ASP.NET MVC application? Ask Question

How do you start debugging the application at the application root? For example: http://localhost:49742/

I'm always getting a page which doesn't exist, such as: http://localhost:49742/Views/Home/About.aspx

Note that it would be OK to start at http://localhost:49742/Views/Home/About

ベストアンサー1

Go to your project's properties and set the start page property.

  1. Go to the project's Properties
  2. Go to the Web tab
  3. Select the Specific Page radio button
  4. Type in the desired url in the Specific Page text box

おすすめ記事