PDA

View Full Version : Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies.


FabriceB
01-27-2011, 07:19 PM
I've been attempting to complete a cascading dropdown using the AjaxControlToolkit available for .NET.

Most of the examples I seem to find are based on C# but what I am interested in is VB.

So far, I've come accross the following threads when googling for examples:


http://www.vbknowledgebase.com/?Id=104&Desc=JavaScript-Ajax-Cascading-Dropdown
http://forums.asp.net/t/1217087.aspx
http://www.vbdotnetforums.com/web-services/33681-how-do-cascadingdropdown.html


I've attempted to extract what ever I figured would be necessary in order to reproduce it for my page but get the following error:

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 2: <%@ Import Namespace="System.IO" %>
Line 3: <%@ Page Culture ="en-US" UICulture ="en-US" Language="VB" Debug="true" EnableEventValidation="false" aspcompat="true" %>
Line 4: <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
Line 5: <%@ Register TagPrefix="UserControl" TagName="Header" Src="/common/asp/head.ascx" %>
Line 6: <%@ Register TagPrefix="UserControl" TagName="Footer" Src="/common/asp/foot.ascx" %>


Source File: /test/default2.aspx Line: 4



the toolkit dll is located in the same directory.

Any idea where i'm going wrong?

(Please let me know if it would be required of me to post the entire code in order to help resolve this issue)

Thanks in advance

FabriceB
01-31-2011, 09:59 PM
Not sure why but I wasn't able to reedit my previous post.

So to sum this up, for anyone who like me, decided to adventure themselves in writing the ASP.NET without VS... When using a ToolKit, simply make sure to add a "BIN" folder in your root directory.

Say for example your files layed in "D:\LOCALDEV" this would imply having a "D:\LOCALDEV\BIN" folder which would hold the AjaxControlToolkit.dll...

The joys of new beginnings... lol

Live and learn right?

P.S.: This only resolved the error message I mentioned... I am obviously coming across new issues such as not obtaining the list in my drop down but one step at a time! ;o)