How to remove ajax toolkit from website

2

How can i remove the ajax toolkit from my website? i developed my website in .net 4.0 when i compile it in 2.0 and run it, it gets this error on page load.

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. 

I thinks its the Ajax that causes me that error because ajax is not present ing .net 2.0

I am not using ajax in my Website so its Okay for me to delete it or remove it from the current website.

EDIT This is the assembly Load Trace:

=== Pre-bind state information ===
LOG: User = PJLIMAIN\aslaure
LOG: DisplayName = AjaxControlToolkit
 (Partial)
LOG: Appbase = file:///C:/Users/aslaure/Desktop/IACS References/PJLhuillier.IACS/PJLhuillier.IACS/
LOG: Initial PrivatePath = C:\Users\aslaure\Desktop\IACS References\PJLhuillier.IACS\PJLhuillier.IACS\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\aslaure\Desktop\IACS References\PJLhuillier.IACS\PJLhuillier.IACS\web.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Users/aslaure/AppData/Local/Temp/Temporary ASP.NET Files/root/70cff49e/7a1e4609/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Users/aslaure/AppData/Local/Temp/Temporary ASP.NET Files/root/70cff49e/7a1e4609/AjaxControlToolkit/AjaxControlToolkit.DLL.
LOG: Attempting download of new URL file:///C:/Users/aslaure/Desktop/IACS References/PJLhuillier.IACS/PJLhuillier.IACS/bin/AjaxControlToolkit.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8013101b). Probing terminated.
c#
asp.net
.net-4.0
ajaxcontroltoolkit
asked on Stack Overflow Aug 30, 2013 by Albert Laure • edited Sep 2, 2013 by Albert Laure

2 Answers

2

You should remove this line from top of aspx file :

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
answered on Stack Overflow Aug 30, 2013 by Majid
0

Just delete this line from your aspx page and also clear the ajax control toolkit from your reference(check your reference)

<%@ Register Assembly="AjaxControlToolkit"
 Namespace="AjaxControlToolkit" TagPrefix="asp" %>
answered on Stack Overflow Aug 30, 2013 by Veenet • edited Aug 30, 2013 by (unknown user)

User contributions licensed under CC BY-SA 3.0