Cannot Set Property 'scriptsFailed' of undefined

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    6 posts
    Member since:
    Mar 2011

    Posted 16 Dec 2013 Link to this post

    Hi Everyone,

    I am having an error (Cannot Set Property 'scriptsFailed' of undefined) which has to do with the webresource.axd when I access my application from outside our domain. I have no errors when running the app inside out domain.

    I have attached an image of the error I am getting.

    I am assuming that access to the webresource.axd is somehow not setup to allow external requests or something but all of my searching on Google has not turned up anything helpful.

    Here is my RadScriptManager declaration:

    <telerik:RadScriptManager runat="server" ID="MainRadScriptManager">
        <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" />
        </Scripts>
        <CacheSettings Enabled="true" />
        <CdnSettings TelerikCdn="Enabled" />
    </telerik:RadScriptManager>

    Here is my system.webserver section of my web config:

    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
            <remove name="UrlRoutingModule" />
            <add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            <remove name="RadUploadModule" />
            <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" preCondition="integratedMode" />
            <remove name="RadCompression" />
            <add name="RadCompression" type="Telerik.Web.UI.RadCompression" preCondition="integratedMode" />
            <add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
        </modules>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <remove name="ChartImage_axd" />
            <remove name="ScriptHandlerFactory" />
            <remove name="ScriptHandlerFactoryAppServices" />
            <remove name="ScriptResource" />
            <remove name="Telerik_Web_UI_SpellCheckHandler_axd" />
            <remove name="Telerik_Web_UI_DialogHandler_aspx" />
            <remove name="Telerik_Web_UI_WebResource_axd" />           
            <remove name="Telerik_RadUploadProgressHandler_ashx" />
            <remove name="WebServiceHandlerFactory-Integrated" />
             
            <add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
            <add name="ScriptResource" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            <add name="Telerik_Web_UI_WebResource_axd" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" preCondition="integratedMode" />
            <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik.Web.UI.WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" />
            <add name="Telerik_Web_UI_SpellCheckHandler_axd" path="Telerik.Web.UI.SpellCheckHandler.axd" type="Telerik.Web.UI.SpellCheckHandler" verb="*" preCondition="integratedMode" />
            <add name="Telerik_Web_UI_DialogHandler_aspx" path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler" verb="*" preCondition="integratedMode" />
            <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
        </handlers>
    </system.webServer>

    If anyone can offer any help or suggestions, I would really appreciate it as I feel like I am dealing with a black box here.

    Thank you.
  2. Kevin
    Kevin avatar
    6 posts
    Member since:
    Mar 2011

    Posted 16 Dec 2013 Link to this post

    I am also getting the errors in my Chrome developer window (attached as an image).
  3. Bozhidar
    Admin
    Bozhidar avatar
    1187 posts

    Posted 18 Dec 2013 Link to this post

    Hi Kevin,

    Your second screenshot shows that the Telerik.Web.UI.WebResource is throwing a 500 error, which is the source of the subsequent errors, as this resource contains all of the MS Ajax Framework scripts, which in turn are used by our Controls. The following help article explains some of the common issues that might cause this problem:
    http://www.telerik.com/help/aspnet-ajax/introduction-web-resources-troubleshooting.html


    Regards,
    Bozhidar
    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.
Back to Top