2013-11-21 59 views
1

我有通过ektron V8.0 SP1建立asp.net网站。我在我的应用程序中使用url重写模块。按预期工作。我的应用程序中也有telrick控件。ScriptResource.axd不在asp.net中加载? 500 URL重写模块错误

但遗憾的是现在不能使用任何telrick控制在我的网站PAGE电泳理由是:

corresponding ScriptResource.axd resource are not loading as expected. 

我在Web浏览器中得到这个错误。 enter image description here

当我评论<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"). 

任何一个有为什么脚本资源不加载任何想法。 欢迎任何想法。

回答

4

你可能需要增加一条规则,忽略*个.axd作为你的第一个规则:

<rule name="Exclude some stuff" stopProcessing="true"> 
    <match url="(.*)\.(asmx|svc|axd)(.*)$" /> 
    <action type="Rewrite" url="{R:1}.{R:2}{R:3}" /> 
</rule> 
+0

我已经尝试过,但问题仍然存在。 –

+0

您能否在事件查看器中直接在浏览器中调用其中一个axd URL以获取更详细的错误消息? – Mark

+0

更新了我的问题中的详细错误。 –

0

我有同样的问题,什么工作对我来说是添加一个新的先决条件确保。 AXDs不检查和前提添加到出站规则所引起的问题:

<outboundRules> 
    <rule name="ProblemRule" preCondition="noAxd" enabled="true"> 
     ... 
    </rule> 
    <preConditions> 
     <preCondition name="noAxd"> 
      <add input="{URL}" pattern="\.axd$" negate="true" /> 
     </preCondition> 
    </preConditions> 
</outboundRules> 
+0

不适用于我:( –

0

你能澄清多一点什么的ScriptManager您使用您的网页上?是RadScriptManager还是asp ScriptManager?

如果您使用的是RadScriptManager,您可以仔细检查一下,如果用asp(“ScriptManager”)代替它,问题将被复制。在这种情况下,有问题的页面的HTTP流量将更加密集和描述性