Iis 7 Url路由在本地主机上工作,但在服务器上不工作

Iis 7 Url路由在本地主机上工作,但在服务器上不工作,iis-7,url-routing,asp.net-3.5,windows-server-2008-r2,Iis 7,Url Routing,Asp.net 3.5,Windows Server 2008 R2,我使用asp.net 3.5构建我的应用程序, 我在其中使用了URL路由,在我的本地主机上运行良好 在我的web.config文件中,我执行以下设置 <system.web> <httpModules> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neu

我使用asp.net 3.5构建我的应用程序, 我在其中使用了URL路由,在我的本地主机上运行良好 在我的web.config文件中,我执行以下设置

    <system.web>
    <httpModules>
         <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral,                 PublicKeyToken=31BF3856AD364E35"/>
       <add name="RoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web.Routing, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>
    </httpModules>
    </system.web>



    <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
    <remove name="UrlRoutingModule"/>
    <add name="UrlRoutingModule"
    type="System.Web.Routing.UrlRoutingModule,
    System.Web.Routing, Version=3.5.0.0,
    Culture=neutral,
    PublicKeyToken=31BF3856AD364E35" />
    </modules>


    <handlers>
   <remove name="UrlRoutingHandler"/>
    <add name="UrlRoutingHandler"
    preCondition="integratedMode"
    verb="*" path="UrlRouting.axd"
    type="System.Web.HttpForbiddenHandler,
    System.Web, Version=2.0.0.0, Culture=neutral,
    PublicKeyToken=b03f5f7f11d50a3a" />
    </handlers>
    </system.webServer>

但是,当我将应用程序部署到具有IIS 7和windows 2008 r2的服务器上时,路由在那里不起作用。我想我必须进行一些IIS设置或更改一些web.config代码


所以请任何人给我一些答案

你有没有想过从你的web应用程序中实现

您可能遇到的一个问题是,如果您使用AJAX(工具包或扩展),您将需要实现:

'Ignores any Resource cache references, used heavily in AJAX interactions.
rts.Ignore("{resource}.axd/{*pathInfo}")
在调试过程中,防止获取
Sys是未定义的
错误