I basically finished a project, the results were deployed to my server, the results have been reported 404 can not find a look at Global.asax there is a route registration code
void RegisterRoutes (routecollection routes) { routes. Enablefriendlyurls ();}
There is always no pseudo-static address found in IIS
such as: Localhost/default this
Looking for two days I also put more than one of the IIS modules are right or wrong, finally in a foreigner's article finally solved the problem
Http://weblog.west-wind.com/posts/2011/Mar/27/ASPNET-Routing-not-working-on-IIS-70
In the Web. config add
<system.webserver><modules runallmanagedmodulesforallrequests="true" > </modules> </system.webServer>
If you don't add it, IIS will parse it in its own way, so I can't parse it.
Original source: http://www.cnblogs.com/hack1506/p/3982405.html
http://aspnetfriendlyurls.codeplex.com/
Microsoft.AspNet.FriendlyUrls 404 Error resolution after publishing to IIS
Label:
Original address: http://www.cnblogs.com/OnlyDreams/p/4864662.html
Microsoft.AspNet.FriendlyUrls 404 Error resolution after publishing to IIS