简体   繁体   English

C#-IIS7中的ASP.NET路由处理

[英]C# - ASP.NET Routes Handling in IIS7

I have a web application working fine in IIS6. 我有一个可以在IIS6中正常运行的Web应用程序。 Its using routes using System.Web.Routing.RouteCollection. 其使用路由使用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. 当我尝试在带有框架4的IIS7.5下运行它时,首先它在web.config的scriptResourceHandler部分给了我错误。

After removing it, its opening in IIS7 .. but routes are not working and it gives 404 error. 删除它后,它在IIS7中打开..但是路由不起作用,并且它给出404错误。

How to fix this? 如何解决这个问题?

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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