Error 1 Assembly 'AjaxControlToolkit, Version=4.1.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced
assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Error 1 Assembly 'AjaxControlToolkit, Version=4.1.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced
assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
Two things can be there 1 you don't installed AJAX extension in your system or you are opening Old Ajax version file in newer VS
Its surely a version mismatch issue that what you have configured to use and the one which is referenced, could be because of the diffrent versions of the framework used as well
Anil Srivast...
Member
442 Points
292 Posts
higher version than referenced assembly
May 05, 2012 06:34 AM|LINK
I downloaded the project from
http://code.msdn.microsoft.com/ASPNETKeepAutoCompleteListO-54e16b32
Mark up
<%@ Page Language="C#" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Trace="False"
Inherits="CSASPNETKeepAutoCompleteListOpen._Default" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxControlToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<AjaxControlToolkit:ToolkitScriptManager CombineScripts="false" runat="server" EnablePartialRendering="true">
</AjaxControlToolkit:ToolkitScriptManager>
<div>
<table border="1">
<caption>
Personal information settings
</caption>
<tr>
<td colspan="4">
In the text box on the left fuzzy search of their favorite movies, and then select.
</td>
</tr>
<tr>
<td>
MovieName:
<asp:TextBox ID="tbMovies" runat="server" Text=''></asp:TextBox>
</td>
<td>
<input type="button" name="close" value="Close the Popup" onclick="hideOptionList();" />
<AjaxControlToolkit:AutoCompleteExtender ID="AutoCompleteExtender1" BehaviorID="ACE"
runat="server" TargetControlID="tbMovies" ServicePath="AutoComplete.asmx" ServiceMethod="GetMovies"
MinimumPrefixLength="1" CompletionInterval="10" CompletionSetCount="10" EnableCaching="true" />
</td>
<td>
<asp:ListBox ID="ListBox1" runat="server"></asp:ListBox>
</td>
<td>
<input type="button" name="reset" value="Reset the ListBox" onclick="resetListBox();" />
</td>
</tr>
</table>
</div>
<script src="AutoComplete.js" type="text/javascript"></script>
</form>
</body>
</html>
It gives me following error
Error 1 Assembly 'AjaxControlToolkit, Version=4.1.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
My system has ajax 4.0
chaaraan
Contributor
2170 Points
484 Posts
Re: higher version than referenced assembly
May 05, 2012 06:43 AM|LINK
Hi,
Include this tag in your web.config file
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35" Culture="neutral"/>
<bindingRedirect oldVersion="3.5.0.0" newVersion="4.0.0.0"/>
<publisherProfile apply="no"/>
</dependentAssembly>
</assemblyBinding>
</runtime>
Regards,
Charan
Anil Srivast...
Member
442 Points
292 Posts
Re: higher version than referenced assembly
May 05, 2012 06:56 AM|LINK
now error message
Error 1 Assembly 'AjaxControlToolkit, Version=4.1.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' uses 'System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
chetan.sarod...
All-Star
65729 Points
11138 Posts
Re: higher version than referenced assembly
May 05, 2012 09:02 AM|LINK
Two things can be there 1 you don't installed AJAX extension in your system or you are opening Old Ajax version file in newer VS
Its surely a version mismatch issue that what you have configured to use and the one which is referenced, could be because of the diffrent versions of the framework used as well
http://forums.asp.net/t/1480771.aspx
http://vivekthangaswamy.blogspot.in/2009/08/assembly-ajaxcontroltoolkit.html
First, make sure you install the correct version of the AjaxControlToolkit:
Version 3.0.20229 2008-02-29 release of the AJAX Control Toolkit targets the official release of .NET Framework 3.5 and Visual Studio 2008.
Version 1.0.20229 You can also download the Toolkit for .NET Framework 2.0, ASP.NET AJAX 1.0 and Visual Studio 2005.
Version 3.0.40412
April 12, 2010 release of the AJAX Control Toolkit for ASP.NET 3.5 Service Pack 1 and Visual Studio 2008 SP1.
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.
Anil Srivast...
Member
442 Points
292 Posts
Re: higher version than referenced assembly
May 05, 2012 03:32 PM|LINK
Chetan
I uninstalled previous ajax version
I am using vs 2010
which ajax toolkit should i install 3.5/4.0
Thanx
Anil Srivastava
India
Anil Srivast...
Member
442 Points
292 Posts
Re: higher version than referenced assembly
May 05, 2012 06:32 PM|LINK
Hi
I uninstalled the previous version 4.0(remove dll and delete the tab) again
I installed the AjaxControlToolkit.Binary.NET35
my problem is solved
Tnanks very much Chetan
Anil Srivastava
pune