我在 ektron V8.0 SP1 上构建了 asp.net 网站。我在我的应用程序中使用 url 重写模块。它按预期工作。我的应用程序中也有 telrick 控件。
但不幸的是,现在我无法在我的网页中使用任何 telrick 控件。原因是:
corresponding ScriptResource.axd resource are not loading as expected.
我在网络浏览器中遇到此错误。
当我评论很少<rule.../>在<outboundRules>它开始工作。
一旦我从托管服务器浏览,错误是
HTTP Error 500.52 - URL Rewrite Module Error.
Outbound rewrite rules cannot be applied when the
content of the HTTP response is encoded ("gzip").
任何人都知道为什么脚本资源没有加载。 欢迎任何想法。
请您参考如下方法:
您可能需要添加一个规则来忽略 *.axd 作为您的第一条规则:
<rule name="Exclude some stuff" stopProcessing="true">
<match url="(.*)\.(asmx|svc|axd)(.*)$" />
<action type="Rewrite" url="{R:1}.{R:2}{R:3}" />
</rule>
