Problems with publishing

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    14 posts
    Member since:
    Aug 2014

    Posted 07 Nov 2014 Link to this post

    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
  2. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 12 Nov 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrew
    Andrew avatar
    14 posts
    Member since:
    Aug 2014

    Posted 12 Nov 2014 in reply to Ianko Link to this post

    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.
  5. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 14 Nov 2014 Link to this post

    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.

     
Back to Top