Welcome page configuration in ASP.NET MVC

In MVC, right-click is not supported to directly set the start page.

The correct setup steps are as follows:

1. Right-click the project, find properties, find web under the properties option box, and select the startup operation as a specific page. If you need to set the Login page under the Home controller as the welcome page, you need to set Home/Login

2. Add the following configuration between <configuration>...</configuration> in the Web.config file

  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <modules runAllManagedModulesForAllRequests="true" />
  </system.webServer>

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326927299&siteId=291194637