我已经在服务器 2012 R2 操作系统上安装了带有更新 3 的新 Visual Studio 2013(这是我用于编程和 SQL 的测试操作系统)
但最近当我使用 IIS Express 编译项目时,我的映射 url 遇到 404 错误,这些 url 使用 Intelligencia.UrlRewriter 最新版本。错误页面包含:
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:经典(当我将其更改为集成时,什么也没发生!)
我的 web.config 文件如下:
<configSections>
<section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
</configSections>
. . .
<httpModules>
<add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter"/>
</httpModules>
. . .
<system.webServer>
<modules>
<remove name="UrlRewriter"/>
<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>
. . .
<!--Sample-->
<rewriter>
<rewrite url="~/up/(.+)/(.+)/(.+)/default.html" to="~/client/default.aspx?u=$1&n=$2&pi=0&ps=5"/>