"Telerik' is undefined

38 posts, 0 answers
  1. Str8Hate
    Str8Hate avatar
    31 posts
    Member since:
    Jul 2007

    Posted 27 Jul 2007 Link to this post

    After having installed the "Prometheus" controls, I ran the local samples and everything was working fine.
    After a few days while developing, when I opened Visual Studio it suddenly deleted all the Telerik controls and Prometheus controls and even the AJAX Toolkit from the Toolbox and I was left with the standard Toolbox.
    When I tried running the local samples again on a local server, they were not responding at all. From the Advanced tab of Internet Options I enabled the notify on script error option.
    When I reloaded any page with Telerik controls it popped a Javascript error box and informed me that 'Telerik' is undefined.

    How did this all happen and what exactly triggered it. All my personal project are now static and aren't using the Telerik controls because it can't see them.

    Please Help ASAP.
    And thank you for your time.
  2. Str8Hate
    Str8Hate avatar
    31 posts
    Member since:
    Jul 2007

    Posted 27 Jul 2007 Link to this post

    I would also like to add that I tried uninstalling the Telerik Prometheus controls and then reinstalling them.

    Well, this added them back to my VS Toolbox but my machine is still not able to render the Telerik controls at run-tim on my local server and I'm getting the same script error of 'Telerik' is undefined.

    Ofcourse the online Telerik demo samples that are hosted online run very well so this rules out a problem with the browser. But I still can't figure out what went wrong.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Str8Hate
    Str8Hate avatar
    31 posts
    Member since:
    Jul 2007

    Posted 29 Jul 2007 Link to this post

    I was really satisified with the RAD controls up to this point even though I was using a trial version and I was really intending on purchasing a Developer's license but since strange buggy issues like the one aforementioned above keep rising for no reason ... it makes me very hesistant on purchasing an expensive software toolkit that isn't very reliable.
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 30 Jul 2007 Link to this post

    Hello Str8Hate,

    Most probably you don't have the right ASP.NET AJAX web.config file. Can you verify this?

    Greetings,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. John McCaffrey
    John McCaffrey avatar
    13 posts
    Member since:
    Dec 2004

    Posted 27 Sep 2007 Link to this post

    I am also having this problem with RadScheduler. The only thing on the page is a Script Manager, Scheduler, and a datasource. However, when run I get the javascript error 'Telerik is undefined'. You mentioned in the last post about an incorrect web.config file. What should be in the web.config file in order for this to function?

    --John
  7. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 27 Sep 2007 Link to this post

    Hello John McCaffrey,

    You should have the http handlers and modules registration for AjaxEnabledWebSite. You can create one from VS and copy it to the offending project overriding the old one.

    All the best,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. John McCaffrey
    John McCaffrey avatar
    13 posts
    Member since:
    Dec 2004

    Posted 09 Oct 2007 Link to this post

    Indeed, after creating a new Ajax-enabled project in VS2005 and copying over the sections of the web.config, it all works as intended. Thanks!

    --John


  9. John McCaffrey
    John McCaffrey avatar
    13 posts
    Member since:
    Dec 2004

    Posted 09 Oct 2007 Link to this post

    Indeed, after creating a new Ajax-enabled project in VS2005 and copying over the sections of the web.config, it all works as intended. Thanks!

    --John


  10. Alletha
    Alletha avatar
    9 posts
    Member since:
    Oct 2007

    Posted 03 Jan 2008 Link to this post

    Hi Steve

    I am using an AJAX Enabled Web App in VS2005. When debugging everything works well - however when I publish I get the same error. I am using a mixture of Prometheus and Q3 controls and only the Q3 controls work properly.

    Please advise??

    Kind regards,

    Alletha
  11. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 04 Jan 2008 Link to this post

    Hi Alletha,

    Basically, there are two possible reasons to receive "Telerik is undefined' error with our Prometheus controls:

    1. For some reason the JavaScript files which support a particular control (or the whole "Prometheus" suite) are not loaded
    2. If you are using RadScriptManager and you might get the error in case the http handler is probably not registered in your web.config. Please check for the presence of:

      <httpHandlers> 
         <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
      </httpHandlers> 
    Additionally, can you please double-check that your web.config file is properly configured to work for ASP.NET AJAX web site?

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. Alletha
    Alletha avatar
    9 posts
    Member since:
    Oct 2007

    Posted 06 Jan 2008 Link to this post

    Hi Stephen

    The site is AJAX enabled with appropriate HTTP handlers registered in Web.config. The Skins folders under program files do not contain any JavaScript files, so I guess that is the problem. Where can I locate these JavaScript files?

    Alletha
  13. Alletha
    Alletha avatar
    9 posts
    Member since:
    Oct 2007

    Posted 06 Jan 2008 Link to this post

    Hi Stephen

    Thanks for the tip about the Js files. I am using the RadScriptManger & StylesheetManager. If I delete those and use standard AJAX Toolkit components all publishes fine.

    Thanks
  14. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 10 Jan 2008 Link to this post

    Removed Large Post

    Added the http handler in the webserver settings as noted below and it works now. Thanks,
  15. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 10 Jan 2008 Link to this post

    Hi MGrassman,

    There is nothing missing in the web.config in order for Ajax enabled web site to run. What is the exact problem you experience? It would be great if you can open a ticket and attach a sample that we can debug locally to provide you with more info.

    Greetings,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  16. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 10 Jan 2008 Link to this post

    The problem is I'm getting the "Telerik is undefined' error.

    If you have any other solutions please let me know or else I'll open a support ticket.

    Thanks,
  17. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 11 Jan 2008 Link to this post

    Added 
    <httpHandlers> 
       <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
    </httpHandlers> 

    to the webserver section in the config and it started working.

    Thanks,
  18. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 11 Jan 2008 Link to this post

    Added 
    <httpHandlers> 
       <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" /> 
    </httpHandlers> 

    to the webserver section in the config and it started working.

    Thanks,
  19. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 14 Jan 2008 Link to this post

    Ok I was wrong.  It only worked because I was using a web browser on the actual web server.  when I use a browser that is not on the actual server I get the telerik is undefined.

    This doesn't make any sense to me.  What would cause remote connection not to be able to access the telerik js files.

    Thanks,
  20. MGrassman
    MGrassman avatar
    92 posts
    Member since:
    Apr 2007

    Posted 14 Jan 2008 Link to this post

    Hey I have figured it out.  It was due to the following web config.

    <

    authentication mode="Forms">
        <
    forms name="form" path="/" loginUrl="Login.aspx" protection="All" timeout="150000"/>
    </
    authentication>
    <
    authorization>
        <
    deny users="?"/>
    </
    authorization>

    I had to add

    ...
    </system.web>
    <location path="Users/Telerik.Web.UI.WebResource.axd">
        <
    system.web>
            <
    authorization>
                <
    allow users="*"/>
            </
    authorization>
        </
    system.web>
    </
    location>
    <location path="Telerik.Web.UI.WebResource.axd">
        <
    system.web
    >
            <
    authorization
    >
                <
    allow users="*"
    />
            </
    authorization
    >
        </
    system.web
    >
    </
    location
    >
    ...


  21. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 06 Feb 2008 Link to this post

    Hi I'm having this issue but only when placing the site as the Web Site home directory.  So.

    If I have http://url/ApplicationName/ everything works fine (even on IIS5 - http://localhost/ApplicationName).

    However if I make the application the home directory of the site, eg: http://localhost/. I get the error described in this thread.  For some reason its not getting the resources. (I'm not using RadScriptManager).

    Has anyone seen this issue?

    Thanks

    Guido Tapia
  22. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 07 Feb 2008 Link to this post

    Hello Guido,

    Are you using RadStyleSheetManager? Any additional information on your server setup will be highly appreciated.

    Best wishes,
    Steve
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  23. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 07 Feb 2008 Link to this post

    Hi, no I'm not using RadStyleSheetManager,  There is nothing special about my server setup, it happens on various II5 or IIS6 machines, on all machines I've tested so far. But again, I state, this only happens when using the root url of that machine (or a specific website in the machine). I have dissabled authentication and it still occurs.

    I have created a new project and am trying to reproduce it but have not been able to find it yet.  My broken project is quite complex Masterpage with RadAjaxPanel and rad controls in the Content section of pages.  I've got a RadSpell in the master page also.

    Will post concrete reproduceable example soon I hope.  We found this problem 1hr before going live so its driving us insane.

    Thanks
  24. Guido Tapia
    Guido Tapia avatar
    87 posts
    Member since:
    Jul 2012

    Posted 07 Feb 2008 Link to this post

    The problem was Blowery.

    Interesting it only fails on the root directory, not your problem tho.

    Thanks

    Guido
  25. Cyprien
    Cyprien avatar
    1 posts
    Member since:
    Mar 2008

    Posted 26 Mar 2008 Link to this post

    i had the same problem.
    It's working fine in development server but when deployed in my production IIS7 server it fails.

    Best Regards
  26. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 27 Mar 2008 Link to this post

    Hello Cyprien,

    Can you check whether the suggestions I gave to Alletha help you address the issue you are currently having? Do you use RadScriptManager or RadStyleSheetManager in your application and does the error vanish when you remove them? Finally, is it possible that you use OutputCache directive on the problematic page(s)? If so, remove it to see whether this helps.

    Best regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  27. Matthew
    Matthew avatar
    14 posts
    Member since:
    Sep 2007

    Posted 30 Mar 2008 Link to this post

    None of the suggestions made by the Telerik team worked.  Luckily, someone else posted the solution.  Thank you so much!!  This must be added to your web.config if you are using forms authentication on your site.  Shame on you Telerik for not pointing that out!!!

    <location path="Users/Telerik.Web.UI.WebResource.axd">
        <
    system.web>
            <
    authorization>
                <
    allow users="*"/>
            </
    authorization>
        </
    system.web>
    </
    location>
    <location path="Telerik.Web.UI.WebResource.axd">
        <
    system.web
    >
            <
    authorization
    >
                <
    allow users="*"
    />
            </
    authorization
    >
        </
    system.web
    >
    </
    location
    >
  28. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 Mar 2008 Link to this post

    Hello Matthew,

    I think that this information is part of the Troubleshooting topic from the RadControls online documentation:

    http://www.telerik.com/help/radcontrols/prometheus/?Troubleshooting.html

    Let me know if I am leaving something out.

    Regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  29. Matthew
    Matthew avatar
    14 posts
    Member since:
    Sep 2007

    Posted 31 Mar 2008 Link to this post

    Thanks, but you're missing the point.  You came out with a major release that is breaking for every single person who has authentication on their website.  This is not something I should have to hunt for under "troubleshooting."  Also, no one knew how to answer the problem posted by several people - another member had to provide the explanation. 
  30. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 31 Mar 2008 Link to this post

    Hello Matthew,

    I apologize if this caused you inconvenience but we considered the most appropriate place to outline the cause of this error and its resolution to be the general Troubleshooting topic from the RadControls Prometheus documentation. I tried to list all possible reasons for this issue to occur but seem to omit the last one related to the authentication. Let me know whether everything is operational on your end now.
     
    Regards,
    Stephen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  31. OSCAR
    OSCAR avatar
    9 posts
    Member since:
    Nov 2007

    Posted 25 Jul 2008 Link to this post

    Buenos dias..

    Para solucionar este inconveniente de telerik is 'undefined' la manera más facil y rápida es dirigiendose a la carpeta  C:\Program Files (x86)\telerik\RadControls for ASPNET AJAX Q1 2008\Live Demos\Web.config según versión del framework que tenga instalado, lo reemplaza en su web site y agrega las nuevas líneas que necesite....Cordialmente Genomapi ( Colombia )

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