1、把应用程序池改成集成
2、的web.config 加入代码
<system.webServer> <validation validateIntegratedModeConfiguration="false" /> <modules runAllManagedModulesForAllRequests="true" > <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule,Intelligencia.UrlRewriter" preCondition="managedHandler"/> <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="managedHandler"/> </modules> </system.webServer>
参靠:http://stackoverflow.com/questions/26661495/intelligencia-urlrewriter-does-not-work-in-iis8-or-iis-express-8
时间: 2024-10-12 15:37:07