2013-11-21 55 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流量將更加密集和描述性