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

"Telerik' is undefined

37 Answers 1532 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Str8Hate
Top achievements
Rank 1
Str8Hate asked on 27 Jul 2007, 07:16 PM
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.

37 Answers, 1 is accepted

Sort by
0
Str8Hate
Top achievements
Rank 1
answered on 27 Jul 2007, 07:27 PM
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.
0
Str8Hate
Top achievements
Rank 1
answered on 29 Jul 2007, 11:56 AM
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.
0
Vlad
Telerik team
answered on 30 Jul 2007, 05:53 AM
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
0
John McCaffrey
Top achievements
Rank 1
answered on 27 Sep 2007, 04:07 PM
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
0
Steve
Telerik team
answered on 27 Sep 2007, 06:26 PM
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
0
John McCaffrey
Top achievements
Rank 1
answered on 09 Oct 2007, 12:45 PM
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


0
John McCaffrey
Top achievements
Rank 1
answered on 09 Oct 2007, 12:46 PM
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


0
Alletha
Top achievements
Rank 1
answered on 04 Jan 2008, 12:28 AM
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
0
Sebastian
Telerik team
answered on 04 Jan 2008, 08:17 AM
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
0
Alletha
Top achievements
Rank 1
answered on 06 Jan 2008, 10:19 PM
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
0
Alletha
Top achievements
Rank 1
answered on 07 Jan 2008, 01:37 AM
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
0
MGrassman
Top achievements
Rank 2
answered on 10 Jan 2008, 07:11 AM
Removed Large Post

Added the http handler in the webserver settings as noted below and it works now. Thanks,
0
Steve
Telerik team
answered on 10 Jan 2008, 07:54 AM
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
0
MGrassman
Top achievements
Rank 2
answered on 10 Jan 2008, 08:23 PM
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,
0
MGrassman
Top achievements
Rank 2
answered on 11 Jan 2008, 06:44 AM
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,
0
MGrassman
Top achievements
Rank 2
answered on 11 Jan 2008, 06:44 AM
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,
0
MGrassman
Top achievements
Rank 2
answered on 14 Jan 2008, 07:59 PM
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,
0
MGrassman
Top achievements
Rank 2
answered on 14 Jan 2008, 09:01 PM
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
>
...


0
Guido Tapia
Top achievements
Rank 1
answered on 07 Feb 2008, 02:03 AM
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
0
Steve
Telerik team
answered on 07 Feb 2008, 07:10 AM
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
0
Guido Tapia
Top achievements
Rank 1
answered on 07 Feb 2008, 09:57 PM
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
0
Guido Tapia
Top achievements
Rank 1
answered on 07 Feb 2008, 10:26 PM
The problem was Blowery.

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

Thanks

Guido
0
Cyprien
Top achievements
Rank 1
answered on 26 Mar 2008, 10:31 PM
i had the same problem.
It's working fine in development server but when deployed in my production IIS7 server it fails.

Best Regards
0
Sebastian
Telerik team
answered on 27 Mar 2008, 07:02 AM
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
0
Matthew
Top achievements
Rank 1
answered on 30 Mar 2008, 03:18 PM
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
>
0
Sebastian
Telerik team
answered on 31 Mar 2008, 07:29 AM
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
0
Matthew
Top achievements
Rank 1
answered on 31 Mar 2008, 01:02 PM
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. 
0
Sebastian
Telerik team
answered on 31 Mar 2008, 01:14 PM
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
0
OSCAR
Top achievements
Rank 1
answered on 25 Jul 2008, 02:56 PM
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 )

0
OSCAR
Top achievements
Rank 1
answered on 25 Jul 2008, 02:57 PM
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 )

0
Quangster
Top achievements
Rank 1
answered on 26 Oct 2008, 03:39 AM
Hey Guido,

We are experiencing the same problem with deploying our site on the root directory. I suspect is blowery as well. What did you do to get around this?

Any help would be great.

Thanks.
0
Paulo
Top achievements
Rank 1
answered on 16 Dec 2008, 12:23 PM

Using some parts of the OScar solution:

Just replace or create the <system.webServer><handlers> with:

 

<

 

handlers>

 

 

 <

 

add name="ChartImage.axd_*" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="Telerik.Web.UI.SpellCheckHandler.axd_*" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />  

 

 

<

 

add name="Telerik.Web.UI.DialogHandler.aspx_*" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Culture=neutral, PublicKeyToken=121fae78165ba3d4" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="Telerik.RadUploadProgressHandler.ashx_*" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="ScriptResource.axd_GET,HEAD" path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="*_AppService.axd_*" path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 <

 

add name="*.asmx_*" path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" preCondition="integratedMode,runtimeVersionv2.0" />

 

 

 </

 

handlers>

Thank you Oscar

 

 

 

 

 

0
Meaning Of Lights
Top achievements
Rank 2
answered on 06 Jan 2009, 02:43 AM
One more possibility:

http://encosia.com/2007/08/16/updated-your-webconfig-but-sys-is-still-undefined/

"The most common reason for this error is JavaScript that references the Sys namespace too early"
0
Borathana Samnang
Top achievements
Rank 1
answered on 10 Jul 2009, 10:23 AM
When I run Rad Control Demo Center, there was an error "Terlerik" is undefined. When I create a web project using Rad Control, i receive the same error message. I have removed and re-install it, but the error message still occur. When I copy my web project to run on another computer, it worked well. Therefore, i thinked, the problem is not related to web.config. Could you please give me an advise to solve this problem.

Thank in advance.
Bo.
0
Sebastian
Telerik team
answered on 10 Jul 2009, 10:25 AM
Hi Borathana,

I suggest you review the directions (available in the documentation articles pointed below) about how to troubleshoot the error and address it:

http://www.telerik.com/help/aspnet-ajax/troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/web-resources-troubleshooting.html

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.
0
Ashish
Top achievements
Rank 1
answered on 14 Feb 2011, 11:55 PM
I faced the same issue and it got resolved when I set my Web in IIS to use Application pool which is running in Integrated mode for Managed Pipeline.
IIS Manager--> Application Pool --> Select Pool which your Web is using --> Select Advanced Settings --> Select value "Integrated" for field "Managed Pipeline Mode"
Reset IIS and it should work now.
0
Diego
Top achievements
Rank 1
answered on 28 Mar 2012, 09:19 PM
Hi

I also faced the same issue sys, Telerik is not defined javascript errors.I was spent one full day to resolve the issue. Suddently  resolved the issue by uncheck the Verify that file exist in the confuguration section of IIS.

In application Configuration secton in wildcard entries I have added asnet_isapi.dll. Double click in the file. It will propmt for editing, their uncheck the checkbox for Verify the file exist.

hope it will help somone.

Thanks
Tags
General Discussions
Asked by
Str8Hate
Top achievements
Rank 1
Answers by
Str8Hate
Top achievements
Rank 1
Vlad
Telerik team
John McCaffrey
Top achievements
Rank 1
Steve
Telerik team
Alletha
Top achievements
Rank 1
Sebastian
Telerik team
MGrassman
Top achievements
Rank 2
Guido Tapia
Top achievements
Rank 1
Cyprien
Top achievements
Rank 1
Matthew
Top achievements
Rank 1
OSCAR
Top achievements
Rank 1
Quangster
Top achievements
Rank 1
Paulo
Top achievements
Rank 1
Meaning Of Lights
Top achievements
Rank 2
Borathana Samnang
Top achievements
Rank 1
Ashish
Top achievements
Rank 1
Diego
Top achievements
Rank 1
Share this question
or