Asp.net Intelligencia.UrlRewriter在IIS8或IIS Express 8中不工作?
我已在server 2012 R2操作系统上安装了新的visual studio 2013和更新3(这是我的编程和SQL测试操作系统) 但最近,当我使用IIS Express编译项目时,我遇到了404错误,因为我的映射URL使用的是Intelligencia.UrlRewriter上一版本。 错误页包含:Asp.net Intelligencia.UrlRewriter在IIS8或IIS Express 8中不工作?,asp.net,iis,urlrewriter,Asp.net,Iis,Urlrewriter,我已在server 2012 R2操作系统上安装了新的visual studio 2013和更新3(这是我的编程和SQL测试操作系统) 但最近,当我使用IIS Express编译项目时,我遇到了404错误,因为我的映射URL使用的是Intelligencia.UrlRewriter上一版本。 错误页包含: Requested URL http://localhost:2706/technology/Astronomy/2014/9/28/1853.html Physical Path
Requested URL http://localhost:2706/technology/Astronomy/2014/9/28/1853.html
Physical Path E:\project\technology\Astronomy\2014\9\28\1853.html
Logon Method Anonymous
Logon User Anonymous
Request Tracing Directory C:\Users\Administrator\Documents\IISExpress\TraceLogFiles\Project
有关我的项目的更多规范包括:
.net框架:4
Managed pipline mote:classic(当我将其更改为Integrated时,什么也没发生!)
我的web.config文件如下所示:
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
。
.
。
.
。
.
我更改了此设置,现在它可以工作了: 在项目属性中,我更改了
托管管线远程:经典->集成
和
在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>
我更改了此设置,现在它可以工作了: 在项目属性中,我更改了
托管管线远程:经典->集成
和
在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>
我更改了此设置,现在它可以工作了: 在项目属性中,我更改了
托管管线远程:经典->集成
和
在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>
我更改了此设置,现在它可以工作了: 在项目属性中,我更改了
托管管线远程:经典->集成
和
在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>
在我的情况下,url重写在主文件夹上工作,但在下一个文件夹中,它不工作的网站>管理员在我的情况下,url重写在主文件夹上工作,但在下一个文件夹中,它不工作的网站>管理员在我的情况下,url重写在主文件夹上工作,但在下一个文件夹是不工作的网站>管理员