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
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.
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
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
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
Basically, there are two possible reasons to receive "Telerik is undefined' error with our Prometheus controls:
- For some reason the JavaScript files which support a particular control (or the whole "Prometheus" suite) are not loaded
- 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>
Best regards,
Stephen
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
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
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
Added the http handler in the webserver settings as noted below and it works now. Thanks,
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
If you have any other solutions please let me know or else I'll open a support ticket.
Thanks,
<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,
<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,
This doesn't make any sense to me. What would cause remote connection not to be able to access the telerik js files.
Thanks,
<
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>
...
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
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
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
Interesting it only fails on the root directory, not your problem tho.
Thanks
Guido
It's working fine in development server but when deployed in my production IIS7 server it fails.
Best Regards
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
<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>
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
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
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 )
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 )
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.
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
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"
Thank in advance.
Bo.
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.
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.
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