NetCore default path in IIS problem

Problem Description: The existing project template (CMS) a copy of the code to open another project, publish the IIS in the basic sound, also can not find the default path for how to start, modify the default document also does not work, Best not Qi sister, wrong shots are as follows:

Solution: sleep time is still pondering this issue, over a careful comparison of several projects already in the morning, because the template project is CMS, jump to default

Home/Index

Then determine whether to enable a static page, then follow-up jump, change when the controller directly to the Home to deleted, leaving only the back of the controller Admin, and then died on the root directory of the jump is not passed. Before the project after the discovery of comparison is to jump directly to the Home / Index page, and then wrote a js jump pages, such as this:

<script>window.location.href = "/Admin/Login";</script>

Home controller added back again in a project to solve the problem. IIS is estimated that the default path Home / Index. . .

Guess you like

Origin www.cnblogs.com/wangbg/p/11224012.html