的URL重写二进制位于:
%SystemRoot%\system32\inetsrv\rewrite.dll
URL重写1.1有一个文件的7.1.490.43
版本。
Url Rewrite 2.0的文件版本为7.1.761.0
或7.1.871.0
(可能有其他版本,但这些是我所知道的两个不同版本)。
如果没有控制台访问验证版本号尝试在一个简单的网页运行下面的代码:
Assembly a = Assembly.Load("Microsoft.Web.Iis.Rewrite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35");
Response.Write(a.FullName);
如果安装UrlRewrite 2.0,那么你会看到类似:
Microsoft.Web.Iis.Rewrite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
如果没有,那么你会得到一个异常抛出:
Could not load file or assembly 'Microsoft.Web.Iis.Rewrite, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
您合作ULD也指出他们在此文档页面:
Tracking Capture Groups Across Conditions
这一段使得它很清楚,trackAllCaptures
是2.0特定的设置,如果没有,那么工作2.0绝对不是装:
In URL Rewrite Module 2.0, it is possible to change how capture groups are indexed. Enabling trackAllCaptures
setting to on the <conditions>
collection makes the capture groups form all matched conditions to be available through the back-references.
来源
2012-08-05 02:04:17
Kev
我安装2.0版的日期为2010年6月30日,它位于%SystemRoot%\ system32 \ inetsrv \ rewrite.dll中,文件/产品版本字符串为7.1.871.0,因此可能需要检查rewrite.dll的版本? – 2012-08-05 01:18:11
您是否知道您是在全面还是部分信任环境中运行? – Kev 2012-08-05 02:05:11
我正在中等信任环境中运行。 trackAllCaptures或outboundRules是否需要完全信任? – blkbam 2012-08-05 14:55:18