简体   繁体   中英

C# - ASP.NET Routes Handling in IIS7

I have a web application working fine in IIS6. Its using routes using System.Web.Routing.RouteCollection.

When I try to run it under IIS7.5 with Framework 4, first It gave me errors on scriptResourceHandler section of web.config.

After removing it, its opening in IIS7 .. but routes are not working and it gives 404 error.

How to fix this?

更新 ..在服务器上安装Microsoft提供的URL重写模块后已修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM