The local machine is normal. When I put it on the server, the title is incorrect. I checked the iis7 configuration carefully and did not find any exceptions. Finally, I found a link on an English website.
Http://stackoverflow.com/questions/5111091/getting-404-0-error-for-asp-net-mvc-3-app-on-iis-7-0-windows-server-2008
PressArticleDownload a patch and install the patch.
- Installed. Net 4.0
- Ran aspnet_regiis.exe (from the framework64/v4.0.30319 folder)
- Installed ASP. net mvc 3 using the Web Platform Installer
- Applied MS update kb980368 to enable certain IIS 7.0 or IIS 7.5 handlers to handle requests whose URLs do not end with a period
An error 0x80070422 is prompted during installation. Do not disable "Windows Update" in the service.
Update description:
This article introduces an update that allows some Internet Information Services (IIS) 7.0 or IIS 7.5 to processProgramThe request URL cannot end with a period. These handlers map to the dedicated "*" Request Path. Currently, a handler is mapped to a "*" path to only process requests whose URLs end with a period. For example, the URLs of requests processed by this handler are similar to the following urls:
Http://www.example.com/ExampleSite/ExampleFile
The update handler is mapped to the last "*" url whose end is a period. The request URL and request URL cannot end with a period and can process the Request Path. For example, this handler can now process requests similar to the following urls:
Http://www.example.com/ExampleSite/ExampleFilehttp://www.example.com/ExampleSite/ExampleFile