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

Problems with publishing

3 Answers 81 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 07 Nov 2014, 05:26 PM
Hello, I am deploying my first Telerik application and I am getting "Uncaught ReferenceError: Telerik is not defined" when I publish my application. The application works in debug in Visual Studio. Please see my attached images showing my Web.config file.

My server is Windows Server 2008 R2 with IIS 7.x. Do I need to change some settings on the server to use Telerik.Web.UI?

My project references have Telerik.Web.UI version 2013.2.717.40

The Telerik.Web.UI.dll is in my /bin/ directory.

Here are all the URL's of fixes I have tried...

http://www.telerik.com/help/aspnet-ajax/introduction-troubleshooting.html
http://www.telerik.com/help/aspnet-ajax/introduction-add-to-global-assembly-cache.html
http://www.telerik.com/forums/telerik-is-not-defined-solved---internal-build-issue

I don't have shared hosting, but do I need to set up Telerik as if it's on a shared hosting?
http://www.telerik.com/help/aspnet-ajax/introduction-deploying-on-shared-hosting.html

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 12 Nov 2014, 09:09 AM
Hello Andrew,

I already answered you to a support ticket on the same matter. Please examine the answer there, and let us continue the conversation in the support ticket to further investigate the described issue.

For any other interested on the matter, the suggestion is to disable the CDN support and see if that resolves the not fetched resources.

This issue is not related to missing assemblies, but to missing JavaScript resources. If the assemblies are missing from the server a server-side exception should be thrown.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Andrew
Top achievements
Rank 1
answered on 12 Nov 2014, 03:19 PM
If you had looked at the Web.config file closer, you would have noticed that the CDN references are commented out!

The javascript resources are in the assemblies. The Telerik.Web.UI.dll creates the javascript resources.

Oh how I wish they were just JavaScript files that I could locate, manipulate and verify. But I'm stuck having to work with the References, the GAC, and bin folders.
0
Ianko
Telerik team
answered on 14 Nov 2014, 09:35 AM
Hello Andrew,

Thank you for clarifying about the commented configuration. I indeed, missed that out.

What I meant by the note that this is a JavaScript error is actually an explanation that the assemblies are properly found and referenced, although the resources from them are not properly requested. Therefore, this issue is not related to deployment matter of the dll files, but more related to a configuration matter. If there is a problem with the assemblies on the server, a server exception is thrown about the unknown server tag, not a JS error about missing resources or Telerik is undefined.

Also, as we continued the discussion in the support ticket, you lastly mentioned the usage of the AjaxToolkit's script manager, which is an unsupported scenario. The resolution is to set the ScriptManager's CombineScript property to false as described in this forum thread. Although, it is always recommended using the Telerik UI for ASP.NET AJAX controls with the native asp:ScripManager or the Telerik's RadScriptManager.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Andrew
Top achievements
Rank 1
Share this question
or