JavaScript runtime error : '$telerik' is undefined

2 posts, 0 answers
  1. Reuben
    Reuben avatar
    1 posts
    Member since:
    Jan 2014

    Posted 11 Aug 2015 Link to this post

    We have just started using UI for ASP.NET AJAX. Everything works fine until we try using client-side code. We keep receiving this error : "JavaScript runtime error : '$telerik' is undefined". I've searched for a solution online but none of the suggested solutions works.

     

    At the moment our web.config has the following entries which according to online sources would solve the problem but didn't :

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

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

    <system.webServer>
      <handlers>
        <add name="Telerik.Web.UI.WebResource"  path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2014.2.724.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
      </handlers>
    </system.webServer>

     We also tried the following to no avail :

    <system.webServer>
      <handlers>
        <add name="Telerik_Web_UI_WebResource_axd" verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" preCondition="integratedMode" />
      </handlers>
    </system.webServer>

    In default.aspx we have the following :

     

            <telerik:RadScriptManager ID="scriptManagerMain" 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>
                <Services>
                    <asp:ServiceReference Path="~/WCF/DataService.svc"/>
                </Services>            
            </telerik:RadScriptManager>
            <telerik:RadAjaxManager ID="radAjaxManagerMain" runat="server">
            </telerik:RadAjaxManager>

    With all these settings we still keep receiving the "JavaScript runtime error : '$telerik' is undefined" error.​ I really hope someone knows the solution to this problem because we're stick here and can't find a solution. Thanks in advance for any help.

     

  2. Viktor Tachev
    Admin
    Viktor Tachev avatar
    1488 posts

    Posted 12 Aug 2015 Link to this post

    Hello,


    Please check out the following thread that discusses similar issue. Try the suggestions from it and see how they work for you.


    Also, take a look at the troubleshooting article below that elaborates on the issue.



    Regards,
    Viktor Tachev
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top