Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified

I am working on sharepoint 2010. I have created a simple visual web part which contain one text box and I have added calendarextender to it. I have added ajaxcontroltoolkit.dll as reference. But when I deploy to sharepoint site then it gives me following error.

"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 3: <%@ Register Assembly="AjaxControlToolkit"> Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

Source File:

/_CONTROLTEMPLATES/VWP_Ajax/VisualWebPart1/VisualWebPart1UserControl.ascx Line: 9

Any ideas where Im going wrong?

like image 323
Satish Avatar asked Jul 27 '11 12:07

Satish


2 Answers

Is the AjaxControlToolkit.dll in the bin directory after you deploy the site?

The assembly (AjaxControlToolkit.dll) needs to be deployed to the Global Assembly Cache (GAC) or put in the \BIN folder of the SharePoint site's folder.

like image 120
Peter Mourfield Avatar answered Oct 04 '22 00:10

Peter Mourfield


This definitely worked for me with SharePoint 2010 ...

Error Code:

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit"  TagPrefix="ajaxControlToolkit"%>

Working Code:

<%@ Register Assembly="AjaxControlToolkit, Version=3.5.60501.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" Namespace="AjaxControlToolkit"  TagPrefix="ajaxControlToolkit"%>
like image 20
Alvin Avatar answered Oct 04 '22 01:10

Alvin