Answered by:
Could not load file or assembly 'System.Web., Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e' or one of its dependencies. The system cannot find the file specified.

Question
-
User-470894283 posted
Hi,
I am using .net framework 4 and installed Ajax Control Toolkit Binary .net 4.
In my bin folder there is Ajax Control Toolkit.dll as well and I put toolkit in my reference list.
But I got the above error message and I find out already in google but can't solve this error.
Please, can anyone give me any idea how to sort this error out.
Thanks in advanced.
In my web.config I put as follow:
<system.web>
<pages>
<controls>
<add tagPrefix="asp" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit"/>
</controls>
</pages>
<compilation debug="true" targetFramework="4.0" strict="false" explicit="true">
<assemblies>
<add assembly="System.Web., Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28F01B0E84B6D53E"/>
<add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A"/>
<add assembly="System.Web.Extensions.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
<add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation></system.web>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="AjaxControlToolkit" publicKeyToken="28f01b0e84b6d53e" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.30930.28736" newVersion="4.1.60623.0" />
</dependentAssembly>
</assemblyBinding>
</runtime></configuration>
I register as follow in my aspx page
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AjaxTesting.aspx.cs" Inherits="AjaxControlToolkit.AjaxTesting" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>Thursday, September 13, 2012 11:33 PM
Answers
-
User1759999623 posted
In the web.config file, change the System.Web assembly element to this:
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 14, 2012 2:43 AM -
User1759999623 posted
Remove the <runtime> section in the web.config file.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 14, 2012 6:37 PM
All replies
-
User1759999623 posted
You have an extra period (.) after "Web": System.Web.,
Thursday, September 13, 2012 11:45 PM -
User-1716253493 posted
Have you try to remove the config line and re-configure it?
Remove the line from web.config
Thursday, September 13, 2012 11:47 PM -
User-470894283 posted
Hi,
Even I remove the (.) after System.Web.,
Its still did not work and I tried to run by removing the config line.
Still did not work and I don't have luck.
Please, anymore advice on this error. Thanks in advanced.
Friday, September 14, 2012 1:18 AM -
User1759999623 posted
In the web.config file, change the System.Web assembly element to this:
<add assembly="System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 14, 2012 2:43 AM -
User-470894283 posted
Hi,
When I changed the System.Web like you mension,I got the error like that:
Unknown server tag 'asp:ToolkitScriptManager'.
Please, anymore advice. Thanks.Friday, September 14, 2012 5:17 AM -
User1759999623 posted
Remove the <runtime> section in the web.config file.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Friday, September 14, 2012 6:37 PM -
User555306248 posted
Hi,
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.
Version 4.1.51116.0
Nov 16 2011 release of the AJAX Control Toolkit for ASP.NET 4.0 and Visual Studio 2010
Sunday, September 16, 2012 11:38 PM -
User-1716253493 posted
right click ajaxcontroltoolkit.dll in bin folder to register it again after deleting config line
Monday, September 17, 2012 12:19 AM -
User-470894283 posted
Hi,
I did and try to run like your instruction.
But I don't have any luck still error coming up.
I installed the right version AjaxControlToolkit.Binary.NET4 (4.1.60623.0) for VS 2010.
AjaxControlToolkit dll file is in bin folder and I add reference correctly.
Please, can anyone give me any ideas. I don't really know what happen with this error and how to solve.
I am really really in the bottle neck.
Thanks in advanced.
Monday, September 17, 2012 2:38 AM -
User-470894283 posted
Oh!
I recreate the new web application and I installed everything I start every as new application again.
Oh my god, finally I redo again according your instruction.
Its work out finally. Thanks a lot.
I am really appreciate for your idea.
Thanks and it makes my day.
Monday, September 17, 2012 2:47 AM