1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Ajax Control Toolkit

Ajax Control Toolkit

4 posts, 0 answered
  1. Bryan
    Bryan avatar
    14 posts
    Registered:
    20 Aug 2008
    13 Jan 2009
    Link to this post
    Hi guys,

    I have user control created using AJAX Control Toolkit on my local machine. It works fine locally. When I promoted it to CMS I uploaded .ascx file and .dll file. Besides, I needed to upload AjaxControlToolkit.dll but CMS already has this file in Bin folder. So, I decided just to use existing file, but I was not able to add control to the page. The error message is below:

    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Could not load file or assembly 'AjaxControlToolkit, Version=3.0.20820.16598, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)


    This message appears when I try to add control to the page.

    Changing AjaxControlToolkit.dll to use mine instead of one that came with Sitefinity did not help either. It caused an error that is below:

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC32206: Indirect reference is being made to assembly System.Web.Extensions version 3.5.0.0, which contains 'AjaxControlToolkit.TabContainer'. This Project references a prior version of System.Web.Extensions version 1.0.61025.0. To use 'AjaxControlToolkit.TabContainer', you must replace the reference to System.Web.Extensions with version 3.5.0.0 or higher.

    Is there any way to resolve the problem?
    Thanks in advance for your prompt response.

    Bryan.
  2. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    14 Jan 2009
    Link to this post
    Hi Bryan,

    It seems the version of the AjaxControlToolkit is not compatible with System.Web.Extensions version. Please, check the version of System.Web.Extensions.dll in the project ~/bin folder and make sure you use the appropriate AjaxControlToolkit version. Most probably switching to System.Web.Extensions version 3.5.0.0 will solve the issue.

    Do let us know how it goes.

    Best wishes,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Bryan
    Bryan avatar
    14 posts
    Registered:
    20 Aug 2008
    14 Jan 2009
    Link to this post
    Pepi,

    Thanks for the quick response. I implemented your suggestion by replacing old System.Web.Extensions.dll with version 3.5.0.0. Then I updated web.config to reference to new DLL version. After this, as I assumed, it started breaking on Rad controls that refer to older version of DLL. The error message is below:


    Parser Error

    Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

    Parser Error Message: Unable to create type 'telerik:RadTabStrip'. Could not load file or assembly 'System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)

    Source Error:

    Line 41: 				
    Line 42: 				<div class="tabstripWrapper">
    Line 43: <telerik:RadTabStrip EnableEmbeddedSkins="false" Skin="Sitefinity" id="MainMenu" runat="server" meta:resourcekey="RadTabStrip1Resource1" DataFieldID="ID" DataFieldParentID="ParentID" DataNavigateUrlField="NavigateUrl" DataSourceID="MainMenuDataSource1" DataTextField="Text" DataValueField="Value" OnDataBound="MainMenu_DataBound" CausesValidation="false"></telerik:RadTabStrip>Line 44: 					<sf2:MainMenuDataSource id="MainMenuDataSource1" runat="server"></sf2:MainMenuDataSource>
    Line 45: 				</div>


    Do you have any other ideas? Will this issue be fixed in the next Sitefinity 3.6?

    Thanks.
  4. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    19 Jan 2009
    Link to this post
    Hello Bryan,

    Which is the exact version of the RadControls that you have? What you could try is to build your project with version 3.5 of the controls. Please download the same version of the controls, but the distribution for .NET3.5.
    I am also not sure if your web.config is updated properly. I am attaching you a blank project web.config file, which is using the System.Web.Extensions.dll with version 3.5.

    Let me know if this does not help you to run your project.

    Sincerely yours,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered