ScriptResource.axd not found

14 posts, 0 answers
  1. Nick
    Nick avatar
    139 posts
    Member since:
    Mar 2006

    Posted 07 Nov 2008 Link to this post

    VS 2008
    Telerik ASP.NET AJAX Latest Version
    .NET 2.0

    I have a RadGrid with an EditForm.  The edit form contains several RadComboBoxes.

    I have Ajaxed the grid with the RadAjax Manager.

    When I open my edit form, I get:
    Sys.ScriptLoadFailedException: The script '..ScriptResource.axd?..' could not be loaded.
    Code: 0

    ( the .. is extra pathing)

    If I remove the Ajaxmanager, the problem goes away. 

    Regards,
    Nick H
  2. Nick
    Nick avatar
    139 posts
    Member since:
    Mar 2006

    Posted 07 Nov 2008 Link to this post

    Oops - apparently there was a release Nov 5.   Testing it now.
  3. Nick
    Nick avatar
    139 posts
    Member since:
    Mar 2006

    Posted 07 Nov 2008 Link to this post

    It's still a problem with the Nov 5 release.
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 10 Nov 2008 Link to this post

    Hi Nicholas Hustak,

    Could you please test the application by wrapping the RadGrid in regular asp UpdatePanel and let us know if the problem still persists.

    Thank you.

    Regards,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  5. Nick
    Nick avatar
    139 posts
    Member since:
    Mar 2006

    Posted 16 Nov 2008 Link to this post

    Exact same error. 

    Strangely, I have a second page that has a similar setup, but not nearly as many controls in the edit form.  Ajaxing it via the RadAjaxmanager works fine.  It does have a radnumercintput box on it.  I also dropped a radcombobox on it just to help test.  Worked fine.

    These are grids that I converted from the ASP controls to ASP AJAX.  I did it by replacing the rad: with telerik; for all the controls and removing the binaries.  Is it possible there's some extra definitions in the HTML that would cause this?

    Score! I kept comparing the two.  When I put a required field validator on the edit form, bam, stops working and gives me the same error.   I bet this is related to the support ticket I have open about validator controls client side not working properly on a RadWindow.   

    So to sum up:
    VS 2008, Latest ASP.NET AJAX controls, .NET 2.0.    RadGrid with a template edit form.   Put an input field and a required field validator on it.   Add an ajaxmanager to ajax the grid.   Get the above error about the scriptresource.axd.

    Regards,
    Nick
  6. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 17 Nov 2008 Link to this post

    Hi Nick,

    Will it be convenient for you to open a regular support ticket and send us small runnable project which replicates this error? We will test it locally and advise you further.

    Thank you.

    Sincerely yours,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. Aaron
    Aaron avatar
    1 posts
    Member since:
    Mar 2009

    Posted 04 Mar 2009 Link to this post

    What is the status of this issue? I am having the same problem using a RegularExpressionValidator on the RadGrid.  I have tried other ways to handle the validation and either they don't work or they are not accpetable to the end user.
  8. mohsin
    mohsin avatar
    26 posts
    Member since:
    Apr 2008

    Posted 10 May 2009 Link to this post

    Hi,

     I am having this same problem. My Radcombos are inside the radgrid, which is inside the RadAjax. No error in IE 6. But error in IE 7  and Firefox....

    Error: Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=d2I[longer string here]' could not be loaded.


    A strange thing is happening too, it is working on my Local environment for IE7 and Firefox. But for production server it is working only on IE 6.. and giving error for IE 7 and Firefox.

    Any help?

    Thanks
    --Mohsin





  9. Ryno
    Ryno avatar
    50 posts
    Member since:
    Jul 2006

    Posted 10 May 2009 Link to this post

    I've got the same error as Mohsin...any status update on this one?
  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 11 May 2009 Link to this post

    Hello guys,

    Generally, there can be different reasons the ASP.NET AJAX ScriptResource.axd load to fail and they are discussed in the following public ASP.NET forum threads:

    http://forums.asp.net/p/1129144/1786288.aspx#1786288
    http://forums.asp.net/p/1135963/1814191.aspx

    Additionally, you can perform web resources troubleshooting following the guidelines from this article in the documentation. This can shed some additional light on the subject and how to eliminate the exception you encountered.

    I hope these directions are helpful.

    Best regards,

    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  11. Ryno
    Ryno avatar
    50 posts
    Member since:
    Jul 2006

    Posted 06 Jun 2009 Link to this post

    The first article deals with partial rendering.  The controls in my case are used in a DotNetNuke 4.8.1 module and I have tried setting the module to "partial rendering" and not and the problem persists in either case so I think the first article doesn't apply to my situation.

    The second article is simply a cache clearing solution but that also doesn't work for me.

    The third article deals with determining if the resources are being delivered to the browser or not or if they are throwing a 404 error.  In my case there is no 404 error.

    In my case the module works fine on a fresh install of DNN.  But when I add to the module to my production DNN site (which has been using a previous version of RadControls for many years) I am now getting this error.  I suspect it may be the result of some kind of conflict but I'm not sure.  Other new RadControls have worked without issue so I'm not sure what is going on.  To make it even more strange, in an older version of IE the control in question works no problem on my production server but in the latest version of IE, firefox, and Safari it does not work.  Very strange.

    I'll start a trouble ticket and upload my code since I really need to get this fixed.
  12. Sundar
    Sundar avatar
    14 posts
    Member since:
    Jul 2008

    Posted 21 Sep 2010 Link to this post

    Hi,

    We are getting same kind of issue while the asynchronous call. (Browser - IE 8). Please guide us to solve this issue.

    Message: Sys.InvalidOperationException: Type Telerik.Web.UI.Orientation has already been registered.
    Line: 2417
    Char: 41
    Code: 0
    URI: http://ourcompanyname.com/ScriptResource.axd?d=vctBMVB2D8Ndj-2aEUAVT5-gGTsWxxfu5qIQ2q09APbeLgOv70W6_VPa7wCAc04pdGCcU0L_CGF8vLZ5TalNXZlbGzvLbwoel_h65q0q0Xc1&t=633444773056929171

    Message: Sys.ScriptLoadFailedException: The script '/ScriptResource.axd?d=pfoVwVAlFrc5JVD5_YrXno6Gyw9KSLHbLrX13og_-wFaK0b_VmJjs_3PJPcsvr0t0&t=633923314116157041' failed to load. Check for:
     Inaccessible path.
     Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
     Missing call to Sys.Application.notifyScriptLoaded().
    Line: 3311
    Char: 13
    Code: 0
    URI: http://ourcompanyname.com/ScriptResource.axd?d=vctBMVB2D8Ndj-2aEUAVT5-gGTsWxxfu5qIQ2q09APbeLgOv70W6_VPa7wCAc04pdGCcU0L_CGF8vLZ5TalNXZlbGzvLbwoel_h65q0q0Xc1&t=633444773056929171

  13. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 27 Sep 2010 Link to this post

    Hello BenoitM,

    In addition to the directions provided so far in this forum thread, I suggest you examine the resources here - this should help you eliminate the exception you encountered.

    Best regards,
    Sebastian
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  14. JDJGG
    JDJGG avatar
    1 posts
    Member since:
    Jun 2009

    Posted 29 Oct 2010 Link to this post

    hey you add in the webconfig this line to Framework 2.0
    <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />

    in the httpHandlers

    example:
    <httpHandlers>
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
          <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
        </httpHandlers>

    and the problem with ScriptModule, you should add too in the webconfig this lines:

    <!--line for aceptted Response.Redirect with Ajax Framework 2.0-->
        <httpModules>
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule" />
        </httpModules>
        <!--End line for aceptted Response.Redirect with Ajax Framework 2.0-->

    I Hope I have helped,
    Regards Im ISC. Francisco Quiñones - Web Developer Microsoft Certificated.
Back to Top