This article is a mirror article of machine translation, please click here to jump to the original article.

View: 14518|Reply: 1

[Solved] HTTP 404。 The resource you're looking for (or one of its dependencies) may have been...

[Copy link]
Posted on 1/29/2019 3:08:44 PM | | | |
Sometimes "HTTP 404" appears when the program is running. The resource you're looking for (or one of its dependencies) may have been removed, or its name has changed, or it's temporarily unavailable. Please check the following URL and make sure it is spelled correctly. ".
Here we take the runtime opening login page (login) as an example,
Generally speaking, it is divided into two situations:
1. The reason for the error: the route is incorrect.
Workaround: Open the "Global.asax" file of the project, find the RegisterRoutes()) method, and change the controller in the route to "Login". The action method is generally selected as the default method for "Index" (as shown in the figure), but it can be modified according to your own needs, which is not demonstrated here.


2. Error reason: Select an item in the view as the starting item.
Workaround:
(1) Right-click on the project property - find the web option. You'll find that the value of the specific page option is the same view name that you set as the start page.
(2) Set the value of a specific page to "login" or "login/index" (index is the default, can be written or not).
(3) Running projects.








Previous:January 29, 2019 (Tuesday) Xie You Morning Post
Next:Wednesday, January 30 Morning Post
 Landlord| Posted on 3/12/2019 10:11:33 AM |
MVC setup route is invalid
https://www.itsvse.com/thread-4681-1-1.html
(Source: Architect_Programmer)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com