MVC 3.0 Error HTTP 404 The resource You are looking for (or one of its dependencies) may have been removed, or its name has changed, or is temporarily unavailable. Please check the following URL and make sure it is spelled correctly.

Source: Internet
Author: User

Sometimes "HTTP 404" appears when the program is running. The resource you are looking for (or one of its dependencies) may have been removed, or its name has changed, or is temporarily unavailable. Please check the following URL and make sure it is spelled correctly. "Error message.

Here we take the runtime to open the login page (login) as an example,

In general, there are two situations:

1. Error reason: The route is incorrect.

WORKAROUND: Open the project's "Global.asax" file, locate the route registration (RegisterRoutes ()) method, and change the controller in the route to "Login" on the line. The action method is typically selected as the default method () for "Index", but can be modified to suit your needs and is not shown here.

2. Cause of Error: Select an item in the view as the starting item.

Workaround:

(1), right-click the project Properties--Find web options. You will find that the value of the specific page option is the name of the view 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 without writing).

(3), run the project.

MVC 3.0 Error HTTP 404 The resource You are looking for (or one of its dependencies) may have been removed, or its name has changed, or is temporarily unavailable. Please check the following URL and make sure it is spelled correctly.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.