AJAX Control Toolkit Compatability

Thread is closed for posting
115 posts, 0 answers
  1. Hector
    Hector avatar
    92 posts
    Member since:
    May 2009

    Posted 03 Dec 2009 Link to this post

    I know that the Rad Controls are built ontop of ASPNet Ajax controls.  However, I downloaded the a new version of the Ajax toolkit and I get the following JS error:
     AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.

    What version of ASP.NET Ajax is RadControls using?  Thanks,

    -Hector
  2. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 04 Dec 2009 Link to this post

    Hello Hector,

    From the error message I suppose that you downloaded AJAX toolkit version which is compiled against the ASP.NET 4 Preview version of the framework (available on CodePlex). Currently our controls use either the ASP.NET AJAX 1.0 version or ASP.NET 3.5 version of the scripts - these are the officially supported present versions of the framework.

    I suggest you download and install AJAX toolkit version compiled against the official .NET framework versions to address the exception.

    Best regards,
    Sebastian
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Alex
    Alex avatar
    77 posts
    Member since:
    Mar 2008

    Posted 14 Apr 2010 Link to this post

    When will a version be available that supports 4.0 of the scripts?

    I made the mistake of downloaded the new version of the 3.5 Toolkit which was released on 4/12 and I'm having this issue now.

    Thanks
  5. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 16 Apr 2010 Link to this post

    Hello guys,

    Please review this public forum thread which elaborates on the same subject. Also verify that you are using the .NET 4 assemblies of RadControls for ASP.NET AJAX in your project.

    Best regards,
    Sebastian
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Jackie Gleason
    Jackie Gleason avatar
    3 posts
    Member since:
    Mar 2010

    Posted 22 Apr 2010 Link to this post

    I am having a similar problem with a site I am trying to build and I was wondering if I could get some support. I am using the RADPanelBar control and I am trying to embed it in a .net ecommerce plugin. Everything was looking great till a site had an existing ScriptManager in it. Easy enough I delete the ScriptManager and let RAD take care of it. That worked but after I started playing around with thing suddenly a picture no longer shows up and I get... 

    Webpage error details

    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
    Timestamp: Fri, 23 Apr 2010 02:35:36 UTC

    Message: AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced. If you are using an ASP.NET ScriptManager, switch to the AjaxScriptManager in System.Web.Ajax.dll, or use the ToolkitScriptManager in AjaxControlToolkit.dll.
    Line: 2791
    Char: 470
    Code: 0
    URI: http://localhost:51331/trunk/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_STORE_MENU_ScriptManager_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d3.5.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a0d787d5c-3903-4814-ad72-296cea810318%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2009.3.1314.35%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a603d133a-f943-435d-a80d-57457cc55f4a%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3a4cacbc31%3bAjaxControlToolkit%2c+Version%3d3.0.31106.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d28f01b0e84b6d53e%3aen-US%3a86f3ec8f-e11f-41a4-a4db-54c6e3efc9b3%3a923aa3cc%3a782b16ab%3acfb54798%3af48dface

    Message: 'Sys.Extended.UI' is null or not an object
    Line: 636
    Char: 5
    Code: 0
    URI: http://localhost:51331/trunk/Strawberry.aspx

    Message: 'document.getElementById(...)' is null or not an object
    Line: 315
    Char: 1
    Code: 0
    URI: http://localhost:51331/trunk/Strawberry.aspx


    I have the subversion log of the changes I made and can get a Diff if nessacary, however, it would be trouble so I will get it if someone asks. Any help would be great!


    Thanks

    Jackie

     

  7. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 23 Apr 2010 Link to this post

    Hi Jackie,

    Can you verify that you are using the .NET 4 binaries of the Telerik assemblies and configured your RadScriptManager to reference the two specified client scripts explicitly (as explained in the previously cross-linked forum thread)? Thus you should eliminate the exception you get.

    Best regards,
    Sebastian
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Joshua Yates
    Joshua Yates avatar
    1 posts
    Member since:
    Apr 2010

    Posted 23 Apr 2010 Link to this post

    I'm having the same problem and I'm using version 3.5.40412.0 of the AJAX Control Toolkit (runtime version v2.0.50727)

    This is the latest production release of the AJAX control toolkit. 

  9. Jackie Gleason
    Jackie Gleason avatar
    3 posts
    Member since:
    Mar 2010

    Posted 23 Apr 2010 Link to this post

    At one point I had tried VS2010 but since I have been using a machine that has VS 2008 and I am set up for .net 3.5 so I am not sure why it would be referencing v4. Something could have happened but I only require 3.5 anyway so is there anything else I can do? Can I revert back to 3.5 easily?

    Thanks

    Jackie
  10. Alex
    Alex avatar
    77 posts
    Member since:
    Mar 2008

    Posted 23 Apr 2010 Link to this post

    I am not using the .net 4 assemblies, I am using .net 3.5 with the new 3.5 toolkit that was released 4/12/2010.

    I have changed the scriptmanager with the one in the toolkit and everything is working.
  11. Rick Atkinson
    Rick Atkinson avatar
    11 posts
    Member since:
    Feb 2010

    Posted 29 Apr 2010 Link to this post

    I am using VS 2010 with the latest RAD Ajax controls.  Trying to integrate the 4.0 Ajax Control Toolkit into my web app and having alot of issues.

    Should I be using the 3.5 version for right now?  I am using the 4.0 framework for the app.

    Would appreciate it if someone could outline the steps.  What references are necessary (outside of ajaxcontroltoolkit and telerik dlls)?  Do I need to inject something into the scriptmanager?

    Thanks, Rick.
  12. Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 05 May 2010 Link to this post

    Hi Rick Atkinson,

    Please excuse me for the delayed response.

    The 4.0 Control Toolkit uses their own version of "MicrosoftAjax.js" and "MicrosoftAjaxWebForms.js" registered by the ToolkitScriptManager. If you are using RadScriptManager, you need to register those scripts manually for the Toolkit to work:

    1.<telerik:RadScriptManager runat="server" ID="RadScriptManager1">
    2.    <Scripts>
    3.        <%-- Load the toolkit MS AJAX scripts instead of those in System.Web.Extensions --%>
    4.        <asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjax.js" Path="~/Scripts/MicrosoftAjax.js" />
    5.        <asp:ScriptReference Assembly="System.Web.Extensions" Name="MicrosoftAjaxWebForms.js" Path="~/Scripts/MicrosoftAjaxWebForms.js" />
    6.    </Scripts>
    7.</telerik:RadScriptManager>

    I am attaching a sample project that shows how to do this.

    Greetings,
    Dimitar Milushev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  13. Rick Atkinson
    Rick Atkinson avatar
    11 posts
    Member since:
    Feb 2010

    Posted 05 May 2010 Link to this post

    Thanks for your response Dimitar.

    I am still unable to get my page to load.  Maybe something I am doing wrong. 

    I get an HttpException with a Message of 'File does not exist'.  The source is System.Web.  Below is the Stack Trace:

       at System.Web.StaticFileHandler.GetFileInfo(String virtualPathWithPathInfo, String physicalPath, HttpResponse response)
       at System.Web.StaticFileHandler.ProcessRequestInternal(HttpContext context, String overrideVirtualPath)
       at System.Web.DefaultHttpHandler.BeginProcessRequest(HttpContext context, AsyncCallback callback, Object state)
       at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
       at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

    Not even sure what file does not exist.  Can't seem to find in the exception.

    I added the Scripts folder with the two js files and injected the script references in the RadScriptManager for the page.  In addition, I have references to System.Web and System.Web.Extensions for 4.0.

    In addition, I am using url routing as well.

    Any ideas?  Any advice would be appreciated.

    Thanks again, Rick.
  14. Richard
    Richard avatar
    27 posts
    Member since:
    Sep 2008

    Posted 07 May 2010 Link to this post

    This workaround(s) above only work if you are not using a RadGrid with the RadAjaxManager :-) This is because the RadGrid/RadAjaxManager apparenly use javascript routines that are not present in the AjaxControlToolkit versions of MicrosoftAjax.js etc. I verified this, and found that the routine causing the error (c.get_request()._get_eventHandlerList()._list.completed.reverse();) is indeed only present in the ASP.NET 4 version of these js libs. 

    So, anybody that uses Telerik (newest release, required for ASP.NET 4) with the newest AjaxControlToolkit (required for ASP.NET 4), has either one show-stopper problem, or another. If you use the workaround above, then the RadGrid doesn't work (nor does it with the ToolkitScriptManager, by the way), and if you stay with the RadScriptManager without the workaround, your site blows up due to the AjaxToolkit error (AjaxControlToolkit requires ASP.NET Ajax 4.0 scripts. Ensure the correct version of the scripts are referenced...).

    I think telerik needs to address this problem immediately, because this is a constellation of libs that must work together (Microsoft libs with Telerik libs). Even if it is the "fault" of the AjaxControlToolkit, there needs to be a fix or a workaround on one side or the other soon.

    Ideas? Comments?
    Thanks,
    R


  15. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 10 May 2010 Link to this post

    Hello Richard,

    Indeed, there was an issue using RadAjaxManager with AjaxControlToolkit. However this is already fixed and you can find it addressed in the latest internal build of RadControls for ASP.NET AJAX from your Telerik account. 

    Additionally, I am attaching a sample project to this post to illustrate how both controls can co-exist on a single page.

    Greetings,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  16. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 11 May 2010 Link to this post

    I ran your project and getting the same error "Microsoft JScript runtime error: ASP.NET Ajax client-side framework failed to load."  I am using visual studio 2010 pro and .net framework 4.0
  17. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 11 May 2010 Link to this post

    I have also downloaded the latest internal build and still getting the same error.
  18. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 11 May 2010 Link to this post

    When I change the rad script manager to the toolkit script manager it works, but I can't use the RadAjax manager.
  19. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 May 2010 Link to this post

    Hello Dennis,

    I double checked the previously attached sample web site however it worked fine on my side. Can you try downloading it again and let me know if the problem persists?

    Kind regards,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  20. Pitrik van der Lubbe
    Pitrik van der Lubbe avatar
    1 posts
    Member since:
    Apr 2010

    Posted 12 May 2010 Link to this post

    Hello Iana,

    I have the same problem as Dennis Chipps. I downloaded the sample project and I get the following error: "ASP.NET Ajax client-side framework failed to load".

    if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

    I'm using the latest internal build, ajaxtoolkit 4.0 and asp.net 4.0.

    Nice regards,

    Koen Meijer
  21. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 12 May 2010 Link to this post

    I have downloaded it again with the same result as Pitrik van der Lubbe.  I'm using the latest internal build, ajaxtoolkit 4.0 and asp.net 4.0.

  22. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 May 2010 Link to this post

    Hi all,

    Try using the attached to this post web.config file and let me know it makes any difference.

    Regards,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  23. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 12 May 2010 Link to this post

    Still getting the same error.

    Thanks for your time

  24. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 12 May 2010 Link to this post

    if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');


    if the error I am getting
  25. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 12 May 2010 Link to this post

    Hi Dennis,

    Can you send me the exact sample you are testing? You can also try the newest project attached to this post and let me know if you still receive the same error.

    All the best,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  26. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 12 May 2010 Link to this post

    I tried the new project that you sent me and am still getting the same error.

    Below is the error.

    <script src="/AjaxControlToolkitAndRadAjax/WebResource.axd?d=NuKB0eF33K4Rz7XeNcpQxg2&amp;t=634092023486387752" type="text/javascript"></script>

    <script src="Scripts/MicrosoftAjax.debug.js" type="text/javascript"></script>

    <script type="text/javascript">

    //<![CDATA[

    if (typeof(Sys) === 'undefined') throw new Error('ASP.NET Ajax client-side framework failed to load.');

    //]]>

    <


  27. Scott Barnes Jr
    Scott Barnes Jr avatar
    4 posts
    Member since:
    Feb 2010

    Posted 12 May 2010 Link to this post

    I too am getting the same type of errors:

    Message: ASP.NET Ajax client-side framework failed to load.
    Message: 'Type' is undefined
    Message: 'Sys' is undefined

    This is a huge showstopper for me.
  28. Richard
    Richard avatar
    27 posts
    Member since:
    Sep 2008

    Posted 12 May 2010 Link to this post

    One workaround for several of these problems is to disable the CDN. The following (code below) is what I use, and it works with all the newest versions together. This is unacceptable in the long term, of course, since it circumvents the CDN. I assume that Telerik will fix that. Note also, that the MicrosoftAjax.js and MicrosoftAjaxWebForms.js are NOT the ones from ASP.NET 4, they are (and must be) the ones from the newest AjaxControlToolkit release for ASP.NET 4.0. Why the AjaxControlTookit guys did not see fit to use the newest release from Microsoft is beyond me, and they should fix that ASAP. This is probably what is screwing up the CDN capability, since the CDN certainly assumes the ASP.NET 4.0 files.

        <telerik:RadScriptManager runat="server" ID="ScriptManager" EnablePartialRendering="true"   
            EnableScriptGlobalization="true"   
            RoleService-LoadRoles="true"    
            ScriptMode="Auto"    
            EnableCdn="false" CdnSettings-TelerikCdn="Disabled"   
            EnablePageMethods="true" EnableScriptCombine="true" >    
            <Scripts>    
                <asp:ScriptReference Name="MicrosoftAjax.js" Path="/Scripts/MicrosoftAjax.js" />    
                <asp:ScriptReference Name="MicrosoftAjaxWebForms.js" Path="/Scrips/MicrosoftAjaxWebForms.js" />    
            </Scripts>    
        </telerik:RadScriptManager> 
     

  29. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 May 2010 Link to this post

    Hi,

    Indeed, there is an issue with the Telerik CDN is enabled and we are working on it already.
    However the sample I previously sent is not using CDN and still I am not able to replicate the error mentioned in you posts. I will need to perform further research to find what could be causing it on your end.

    All the best,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  30. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 May 2010 Link to this post

    Hi Richard,

    Please excuse me for misleading you. The issue with the CDn appears because Telerik CDN is supported only for the official version. And in case you are using internal build I suggest that you currently disable the CDN.
    Also for the projects where you what to use AjaxControlToolkit controls with RadScriptManager and RadAjax, could you please try setting the EnableScriptsCombone property of the RadScriptManager to false and see if it works?

    Best wishes,
    Iana
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  31. Dennis Chipps
    Dennis Chipps avatar
    11 posts
    Member since:
    Feb 2009

    Posted 13 May 2010 Link to this post

    I tried EnableScriptCombine=false and am still getting the same error.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017