This is a migrated thread and some comments may be shown as answers.

Exception with Telerik.Web.UI.WebResource.axd?_TSM_HiddentField_=

4 Answers 436 Views
ScriptManager and StyleSheetManager
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 11 Jun 2013, 10:51 AM
Hi,

In my project, I always have exception with the WebResource.axd. For example:

Exception was thrown at line 4596, column 6 in http://localhost:49573/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:fr-FR:c9cbdec3-c810-4e87-846c-fb25a7c08002:ea597d4b:b25378d2;Telerik.Web.UI:fr-FR:df833b2e-28ee-45e7-8320-6f2a9cb883d7:16e4e7cd:f7645509:22a6274a:ed16cbdc:874f8ea2:24ee1bba:f46195d3:19620875:490a9d4e:bd8f85e4

And error in script is line:

{var f=this

 

._iframe.contentWindow.document.title;

So, as my project is huge, I reproduce it in a simple application:
I had a webpage with a RadWindow. Exception occur (javascript exception).
I had another webpage using a masterpage. This time, RadWindows even do not open!

I think it's a configuration pb but I'm unable to find it.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkingPage.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<head id="Head1" runat="server">
    <title>Title</title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            //Put your JavaScript code here.
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" />
 
        <!--RadWindow-->
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" Animation="Fade" Modal="True" NavigateUrl="http://www.c2i.fr" OpenerElementID="Button1" Style="display: none;" Title="C2I.FR" />
            </Windows>
        </telerik:RadWindowManager>
        <asp:Button ID="Button1" runat="server" Text="Button" />
         
 
    </form>
</body>
</html>

And here is my web.config:

<?xml version="1.0"?>
<configuration>
  <appSettings>
    <add key="Telerik.Skin" value="Office2010Silver"/>
    <add key="Telerik.ScriptManager.TelerikCdn" value="Disabled"/>
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Disabled"/>
  </appSettings>
  <system.web>
    <compilation debug="true" targetFramework="4.0"/>
    <pages>
      <controls>
        <add tagPrefix="telerik" namespace="Telerik.Web.UI" assembly="Telerik.Web.UI"/>
      </controls>
    </pages>
    <httpHandlers>
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false"/>
    </httpHandlers>
    <httpModules>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression"/>
    </httpModules>
  </system.web>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false"/>
    <modules runAllManagedModulesForAllRequests="true">
      <remove name="RadCompression"/>
      <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode"/>
    </modules>
    <handlers>
      <remove name="Telerik_Web_UI_WebResource_axd"/>
      <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode"/>
    </handlers>
  </system.webServer>
</configuration>


Thank's to take your time to help me.

 

 


4 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 12 Jun 2013, 11:48 AM
Hi Richard,

This code tries to get the document title of the content page that is inside the RadWindow. Since not all pages will come from the same domain the code is inside a try-catch block, so if an external page is loaded (like in your example - http://www.c2i.fr) the exception that the browser will throw because the access to the iframe document will be denied is trapped in the catch block. This means that this error should not affect your page at all and you could only be able to see it during debugging if the debugger is configured to break on every exception, not only on uncaught ones.

I also tried your markup and things are working fine with me (a video is attached,version tested - 2013.1.417). Am I missing something in my experiment?


Regards,
Marin Bratanov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Quest
Top achievements
Rank 1
answered on 15 Nov 2016, 08:21 AM
Telerik.Web.UI.WebResource.axd   ... Where this file physically Exists in project ???
0
Marin Bratanov
Telerik team
answered on 15 Nov 2016, 08:28 AM

Hello,

This is an HTTP handler that returns the appropriate information requested via WebResources: http://docs.telerik.com/devtools/aspnet-ajax/general-information/web-config-settings-overview.

Regards,

Marin Bratanov
Telerik by Progress
Check out the new UI for ASP.NET Core, the most complete UI suite for ASP.NET Core development on the market, with 60+ tried-and-tested widgets, based on Kendo UI.
0
Quest
Top achievements
Rank 1
answered on 15 Nov 2016, 02:20 PM
Thanks  @Marin Bratanov :  Please Respond on this :  http://www.telerik.com/forums/grid-binding-with-odd-behavior
Tags
ScriptManager and StyleSheetManager
Asked by
Richard
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Quest
Top achievements
Rank 1
Share this question
or