This is a migrated thread and some comments may be shown as answers.

JavaScript runtime error : '$telerik' is undefined

1 Answer 478 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Reuben
Top achievements
Rank 1
Reuben asked on 11 Aug 2015, 03:31 PM

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.

 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 12 Aug 2015, 11:21 AM
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
Rumen
Telerik team
commented on 03 Aug 2022, 02:32 PM

Tags
Ajax
Asked by
Reuben
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Share this question
or