ASP.NET AXD resources blocked on client side?

I have a web application that I host on, and my client reports that some of the JavaScript libraries for the Telerik browser, which are included in the site (but not all), do not work correctly.

What I was able to diagnose so far was that at some point in the process, the WebResource.axd resources containing JavaScript code in the Telerik browser are blocked. After asking the client to directly go to the AXD file itself with the same request, the error message "The connection to the server was reset" appears in Internet Explorer.

The client tried to download this file from several computers at their location, as well as to a computer outside of their firewall and network, as well as on a machine running in their home, and each time receives the same error. They tried to use both Internet Explorer and Firefox.

However, I can successfully download the same file both inside our hosting network and from my home connection.

In accordance with IIS logs, all attempts to register a downloaded resource resulted in a 200 HTTP OK result.

Other actions that have been taken:

  • Reference to nonexisting 404.axd (gave a yellow ASP.NET 404 error message as expected)
  • Link to WebResource.axd, but with invalid verification pointing to a resource that does not exist (this gave a yellow invalid ASP.NET view state or an invalid base64 string, as expected).
  • WebResource.axd, ( "connection reset" ).

, . - ASP.NET( , ), , .

99% , , , , .

, ? - - ?

+3
3

, , RadControls ( Q1'09), , .

0

RadControls ASP.NET, UseEmbeddedScripts = "false" . RadControls ( .js ) (WebResource.axd). , , script RadControls.

RadControls ASP.NET AJAX, script (ScriptResource.axd, WebResource.axd). Telerik RadScriptManager ASP.NET ScriptManager - .

, Fiddler IE Firebug Firefox , (, , , ..).

+4

WebResource.axd ScriptResource.axd ,

  • Open the appropriate node using Reflector or ILSpy, and then save its embedded JS files from the resource section.
  • Now add them to your Script list using asp: ScriptManager

Later, these definitions will appear as:

<script src="staticJS1.js" type="text/javascript"></script> 
<script src="staticJS2.js" type="text/javascript"></script> 

And will no longer be blocked.

<asp:ScriptManager ID="Scriptmanager1" runat="server">
        <Scripts>
            <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" Assembly="System.Web.Extensions"
                Path="~/staticJS1.js" />
            <asp:ScriptReference Name="MicrosoftAjax.js" Assembly="System.Web.Extensions" Path="~/staticJS2.js" />
        </Scripts>
</asp:ScriptManager>
0
source

Source: https://habr.com/ru/post/1735074/


All Articles