Ive just started to transfer the website to the server and i keep getting this error "Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified."
It works fine in VS, and the AjaxControlToolkit.dll is in the bin directory.
I also had this error when visiting the web site on the URL (although I could debug it from Visual Studio). I solved it by creating an application on the directory of the AJAX project in IIS (In the Internet Information Services Manager). Hope that helps.
Hi, i also have the same problem while deploy my web to window server 2003. It seem it cannot find the naming of the ajaxtoolkit which i store inside a "bin" folder. First of all, I though it is the Share point problem that do some security restriction.
But after 2 days of testing, i found out, you have to create a new website in your IIS and using different port number to serve your new software.
However, i still don't know why virtual path cannot be used to do the deployment... [:(]
Anyway, hope this one can help, just create another website, then set another port, then point to your file. that is all... (this is not good machinism if i want to swith to new server or rename the system. all the internal link have to be change.)
I am new to asp.net and I am not sure what you mean by "creating an application on the directory of the AJAX project in IIS " What type of application?
It's a while ago I did this, the meaning is that I solved this problem by creating an application in IIS. Note, IIS, not Visual Studio.
A "step by step" instruction would be something like this:
1. Control Panel > Administrative Tools > Internet Information Services
2. Expand the server > Web Sites > Default Web Sites (or whatever location the site is)
3. Right-click the folder and choose "Properties" from the context menu
4. On the default "Directory" tab, there's a button called "Create". This will create an application in the folder.
I think the source of confusion is that the ASP.NET AJAX controls are marketed as just "drag and drop them into your application", however, in reality it's a bit more complicated than that. A lot of things are going on behind the scenes to make this work,
like webresource.axd etcetera, I suppose the conclusion is that IIS needs to be set up properly for that on.
Follow these steps if ur trying to run a site enabled with AJAX and with ajaxtoolkits enabled in it. take care the server has asp.net 3.5 installed on it.. (to check this, code for a partial page update and check if it works, then no problem it has ajax enabled)
First create a folder named Bin inside the server and then put the AjaxControlToolkit.dll(located inside the website folder in mydocuments/vs2008/websites/yourwebsite) file in to it also include AjaxControlToolkit.dll.refresh,AjaxControlToolkit.pdb into it.
then run the site .. it will work with ajaxtoolkits.. :) hope it helps
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies
sharpelabs
Member
15 Points
3 Posts
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system canno...
Nov 19, 2006 02:03 AM|LINK
Ive just started to transfer the website to the server and i keep getting this error "Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system cannot find the file specified."
It works fine in VS, and the AjaxControlToolkit.dll is in the bin directory.
Ive added the assembly reference to the config:
<controls>
<add tagPrefix="AtlasControl" namespace="AjaxControlToolkit" assembly="AjaxControlToolkit" />
</controls>
Any suggestions?
AjaxControlToolkit
David Anson
Star
8728 Points
1847 Posts
Microsoft
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Nov 28, 2006 09:22 PM|LINK
I'd guess that maybe the web server doesn't have ASP.NET AJAX Beta 2 installed.
http://dlaa.me/
http://blogs.msdn.com/b/delay/
This posting is provided "AS IS" with no warranties, and confers no rights.
David Anson
Star
8728 Points
1847 Posts
Microsoft
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Nov 28, 2006 09:24 PM|LINK
I'd guess that maybe the web server doesn't have ASP.NET AJAX Beta 2 installed.
http://dlaa.me/
http://blogs.msdn.com/b/delay/
This posting is provided "AS IS" with no warranties, and confers no rights.
HiTech2k
Member
48 Points
20 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Dec 14, 2006 06:49 AM|LINK
I also had this error when visiting the web site on the URL (although I could debug it from Visual Studio). I solved it by creating an application on the directory of the AJAX project in IIS (In the Internet Information Services Manager). Hope that helps.
Mike_Zandvli...
Member
38 Points
14 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Jun 19, 2007 05:34 AM|LINK
Thanks - I had exactly the same problem myself, and creating the Application in IIS Manager fixed it. Thanks for the tip. [:D]
Cheers,
Mike
kiddoo_81
Member
54 Points
38 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
May 12, 2008 09:37 AM|LINK
Hi, i also have the same problem while deploy my web to window server 2003. It seem it cannot find the naming of the ajaxtoolkit which i store inside a "bin" folder. First of all, I though it is the Share point problem that do some security restriction. But after 2 days of testing, i found out, you have to create a new website in your IIS and using different port number to serve your new software.
However, i still don't know why virtual path cannot be used to do the deployment... [:(]
Anyway, hope this one can help, just create another website, then set another port, then point to your file. that is all... (this is not good machinism if i want to swith to new server or rename the system. all the internal link have to be change.)
soccerman777
Member
2 Points
1 Post
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Oct 28, 2008 03:59 PM|LINK
I am new to asp.net and I am not sure what you mean by "creating an application on the directory of the AJAX project in IIS " What type of application?
HiTech2k
Member
48 Points
20 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Oct 29, 2008 01:27 AM|LINK
It's a while ago I did this, the meaning is that I solved this problem by creating an application in IIS. Note, IIS, not Visual Studio.
A "step by step" instruction would be something like this:
1. Control Panel > Administrative Tools > Internet Information Services
2. Expand the server > Web Sites > Default Web Sites (or whatever location the site is)
3. Right-click the folder and choose "Properties" from the context menu
4. On the default "Directory" tab, there's a button called "Create". This will create an application in the folder.
I think the source of confusion is that the ASP.NET AJAX controls are marketed as just "drag and drop them into your application", however, in reality it's a bit more complicated than that. A lot of things are going on behind the scenes to make this work, like webresource.axd etcetera, I suppose the conclusion is that IIS needs to be set up properly for that on.
robertyhn
Member
4 Points
2 Posts
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Dec 11, 2008 03:36 PM|LINK
Thank you! you solve my problem. I was about to upgrade my site to .NET3.5 ...
niranjanking
Member
2 Points
1 Post
Re: Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. The system c...
Feb 09, 2009 03:38 PM|LINK
Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies