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
public static 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>
Get...............
If you don't add it, IIS will parse it in its own way, so I can't parse it.
Put it in here for later use.
A Microsoft.AspNet.FriendlyUrls, a sore egg.