Microsoft.AspNet.FriendlyUrls 404 Error resolution after publishing to IIS

Source: Internet
Author: User

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

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.