CDN problem, different JS file of AsyncUpload

4 posts, 0 answers
  1. Yuri Hinojosa
    Yuri Hinojosa avatar
    23 posts
    Member since:
    Apr 2006

    Posted 22 May 2014 Link to this post

    Hi,

    I'm using Telerik 2011 Q2 ( file version 2011.2.712.0,  size: 2029840 bytes)


    I have the following problem: When the Telerik CDN is enabled  AsyncUpload  fail to show (seems to try to load silverlight even SL plugin is not available), using embedded scripts works fine (load flash when no SL available) but lose CDN benefits.

    Comparing the AsyncUpload js file embeded on Telerik dll with the hosted on Telerik CDN both files are different. I was believe will be the identical but not.

    Why the file hosted on CDN is different and have errors? 

    Where is hosted the right file for my Telerik build? and how force ScriptManager to use it?


    Please any advice is welcome.


    CDN version:
    http://aspnet-scripts.telerikstatic.com/ajaxz/2011.2.712/AsyncUpload/RadAsyncUploadScripts.js

    Embeded file:  
    https://mega.co.nz/#!NZ0VEQJK!1kSwpohH28IdWrien1PHP6xA9TG0gJZeOnCIhS-96Ls

    cannot attach zip files...




  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 27 May 2014 Link to this post

    Hello,

    Could you please confirm that you are comparing the CDN version and the JavaScript file from the CDN resources folder included in your Telerik distribution zipped file? One possible way to use the CDN and use a specific JavaScript file is to create a custom CDN provider as explained in this help article. Could you please confirm that are following the instructions in this help article for configuring the CDN?

    Regards,
    Boyan Dimitrov
    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. Yuri Hinojosa
    Yuri Hinojosa avatar
    23 posts
    Member since:
    Apr 2006

    Posted 27 May 2014 in reply to Boyan Dimitrov Link to this post

    1. I'm comparing with the JS file extracted from Telerik .xd handler.

    Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=...

    But I will download the CDN redistribution pack to compare with...



    2. Well, we can setup our custom CDN but why if telerik have one (We already use Asp.Ajax & Jquery from their respective CDNs without any problem)


    I just downloaded the CDN pack for my version Telerik.Web.UI_2011_2_712_CDN_Resources.zip

    Compared the the file of pack:

    \ajax\2011.2.712\AsyncUpload\RadAsyncUploadScripts.js

    With the hosted files:

    http://aspnet-scripts.telerikstatic.com/ajaxz/2011.2.712/AsyncUpload/RadAsyncUploadScripts.js
    AND
    http://aspnet-scripts.telerikstatic.com/ajax/2011.2.712/AsyncUpload/RadAsyncUploadScripts.js


    And still different! Check attached comparison.


    This statment on CDN pack Readme.txt 'This archive contains a copy of the resources deployed on the Telerik CDN.' seems false...



    3. Yes we are using the following settings to enable Telerik CDN

    <add key="Telerik.ScriptManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.StyleSheetManager.TelerikCdn" value="Enabled" />
    <add key="Telerik.ScriptManager.TelerikCdn.BaseUrl" value="https://d2i2wahzwrm1n5.cloudfront.net" />
    <add key="Telerik.StyleSheetManager.TelerikCdn.BaseUrl" value="https://d35islomi5rx1v.cloudfront.net" />


    The last two it's because we are behind a balancer on AWS cloud, if we remove it we have mixed content security problems on client.



    So, comments?
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 30 May 2014 Link to this post

    Hello,

    I am afraid that we are not able to replicate any issues with the Telerik UI for ASP.NET AJAX Q2 2011 when the CDN is enabled. In order to avoid any further confusions I am attaching a sample project with a RadAsyncUpload and CDN enabled. It works fine without any rendering problems or JavaScript errors. This video demonstrates the application behavior at my end. Could you please test it and let us know how that worked.


    Regards,
    Boyan Dimitrov
    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