telerik is undefined

11 posts, 1 answers
  1. Ben Turpin
    Ben Turpin avatar
    27 posts
    Member since:
    Jun 2008

    Posted 03 Sep 2008 Link to this post

    I have something very strange.
    I get the javascript error telerik is undefined, and only for IE6.

    It happens only to the tree object, and on one page it works wel, but on another page I get this error, and the tree is unaccessable.

    Is there something where and how I can register the webresource.axd?

    When I'm looking with fiddler, I don't see the resource loading on my second page, but it is loading on the first page.

    I've already searched in your forum, but there is not any solution described. So please help!

    Thanks in advance
  2. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Sep 2008 Link to this post

    Hello Ben Turpin,

    You can check this blog post which describes how to troubleshoot web resource issues. If this does not help I would ask you to either send us a live url or post a support ticket and attached a sample project.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ben Turpin
    Ben Turpin avatar
    27 posts
    Member since:
    Jun 2008

    Posted 03 Sep 2008 Link to this post

    Hi Albert,

    Thanks for your quick response.

    I've already read that page, and also included by hand the resource, but that didn't solve the problem. I saw it loading with fiddler, but I still got the telerik is undefined error.

    And another problem is, it doesn't happen always, but sometimes.

    Could this be a performance problem of the server?
    Or what?

    Thanks in advance
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Sep 2008 Link to this post

    Hi Ben Turpin,

    If you are using RadScriptManager you may try setting the OutputCompression property to OutputCompression.None. Sometimes older versions of IE6 cannot decompress GZIP-ed content.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Ben Turpin
    Ben Turpin avatar
    27 posts
    Member since:
    Jun 2008

    Posted 03 Sep 2008 Link to this post

    Hi Albert,

    that was very quick ;-)

    But the radscriptmanager doesn't have a property called OutputCompression
  7. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 03 Sep 2008 Link to this post

    Hi Ben Turpin,

    Perhaps you are not using the latest official release. You can either upgrade or try replacing RadScriptManager with ScriptManager to see if output compression is the problem.

    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Ben Turpin
    Ben Turpin avatar
    27 posts
    Member since:
    Jun 2008

    Posted 03 Sep 2008 Link to this post

    Hi Albert,

    that was the solution:
    I've replaced the telerik scriptmanager with the one from microsoft, and no more telerik is undefined.

    Thanks for your quick solution
  9. Derick
    Derick avatar
    9 posts
    Member since:
    Jul 2006

    Posted 23 Jan 2009 Link to this post

    Hi,

    I tried everything else mentioned on your troubleshooting pages as well as the forums, what worked finally was disabling the OutputCompression in RadScriptManager. This really took a lot of my time, I wonder if I would have avoided this issue if I had used 2008 Q3 instead of Q2 which I am currently developing with.

    I needed to use deflate/gzip compression so I ended up adding the following in global.asax
            protected void Application_PreRequestHandlerExecute(object sender, EventArgs e) 
            { 
                HttpApplication app = sender as HttpApplication; 
                string acceptEncoding = app.Request.Headers["Accept-Encoding"]; 
                Stream prevUncompressedStream = app.Response.Filter; 
                // 
                // Enable the following line if ajax requests throw up errors 
                // 
                //if (!(app.Context.CurrentHandler is Page) || 
                //    app.Request["HTTP_X_MICROSOFTAJAX"] != null) 
                //    return; 
     
                if (acceptEncoding == null || acceptEncoding.Length == 0) 
                    return
     
                acceptEncoding = acceptEncoding.ToLower(); 
     
                if (acceptEncoding.Contains("deflate") || acceptEncoding == "*"
                { 
                    // defalte 
                    app.Response.Filter = new DeflateStream(prevUncompressedStream, 
                        CompressionMode.Compress); 
                    app.Response.AppendHeader("Content-Encoding""deflate"); 
                } 
                else if (acceptEncoding.Contains("gzip")) 
                { 
                    // gzip 
                    app.Response.Filter = new GZipStream(prevUncompressedStream, 
                        CompressionMode.Compress); 
                    app.Response.AppendHeader("Content-Encoding""gzip"); 
                } 
            } 
  10. yashvir karki
    yashvir karki avatar
    3 posts
    Member since:
    Jul 2009

    Posted 28 Aug 2009 Link to this post

    Hi

    When I run application from VS it runns perfectly fine but when I am running the published site then I am geting javascript error " 'Telerik' is undefined " as mentioned in posts above.
    I am usign ASP.NET AJAX Q2 2009 and accroding to the last post I shouldn't get this error.

    I also tried using ASP.net native script manager but with that I get java script error message in VS itself so no question of publishing the site.

    I also tried adding code as mentioned above in global.asax... but still geting same javascript error.

    Please help
    Regards
    Yash
  11. Vesko
    Vesko avatar
    122 posts
    Member since:
    Mar 2009
  12. yashvir karki
    yashvir karki avatar
    3 posts
    Member since:
    Jul 2009

    Posted 01 Sep 2009 Link to this post

    Hey

    Thanks for helping...

    but while going through the steps I found that I don't have Telerik.Web.UI dll in my GAC instead I have Telerik.Web.UI.VSX dll.

    I think I am missing a big thing here.... I tried to find out in telerik site if I missed any installation step but according to exe installation it does everything in background ... in same lines when I downloded I got "RadControls_for_ASP.NET_AJAX_2009_2_701_trial.msi" file and I just run it other than that I havn't done any configration.

    I think some link is missing in between as dll for visual studio extention is there and application is running from visual studio.
    But the published version is not running .... It seems there is a diffrent installation for production server? that I am not aware of....

    Regards
    Yash
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017