1
Answer

Could not load file or assembly 'AjaxControlToolkit'

hi Friends ,

I hosted one asp.net web application in server i am getting error mention below.In local host its working fine. i used AjaxControlToolkit dll inside Bin Folder i am getting this error on page wherever i used Ajax controls. I have Tried lots of solution that already given on the internet, but i did not resolve the problem...............

Server Error in '/' Application.

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' or one of its dependencies. The system cannot find the file specified.

Source Error:

Line 1:  <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Admission.aspx.cs" Inherits="Admission" %>
Line 2:  
Line 3:  <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
Line 4:  
Line 5:  

Source File: /educrm/Admission.aspx    Line: 3

Assembly Load Trace: The following information can be helpful to determine why the assembly 'AjaxControlToolkit' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.18034

Answers (1)

0
Photo of Anubhav Chaudhary
NA 42.5k 11.3m 11y
Hello Naveen,

You need to try two or three solutions which are as follows:-

1. Add external file of Ajax by right clicking on your project and then clicking to Add Existing Item.

2. After Adding the external file drag and drop this file in the register section (above the head).

3. You need to Add Tools to the Ajax Toolkit. For this go to the Tools Window which will be on the left hand side of your project and from there go to the Ajax Tools options and then right click on these tools to Add new Tools. Add all the Tools of the Ajax by checking them all.

I hope now your problem will get solved.

Still if you are facing any problem then go through this Article:-

http://www.c-sharpcorner.com/UploadFile/cd7c2e/open-a-new-web-form-in-the-model-popup-of-Asp-Net-applicatio/

 Here in the starting of this Article I had shown how to Add Ajax toolkit to your Application.

Thanks.