Could not load file or assembly 'AjaxControlTo

2020-04-21 07:13发布

问题:

i have installed AJAXcontrolsToolkit with my visual studio and placed "Combobox" Ajaxcontrol controls in my webpage . when i am compiling the code getting below error

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

回答1:

Have you added the required assembly to the references of your project?



回答2:

The above post was very useful

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

I was using the above code , i replaced the code as below and now working

<%@ Register Assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=****" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

Thanks for your post



回答3:

I use File-Zilla to upload my files to the web server. I found that my reference files (AjaxControlToolkit.dll and AjaxControlToolkit.pdb) in the bin folder on the web server had not been completely transferred. so I deleted them and I uploaded new ones from the development site directly into the bin folder of the web server.

And Voila! Everything just fell into place like magic.



回答4:

The application not load because it not find or not is compatible, try to do download from at nuget Install-Package AjaxControlToolkit -version x.x, or in site.



标签: asp.net ajax