ERROR Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies

雨燕双飞 提交于 2019-11-26 21:30:49

问题


I'm deploying my website on the server.

My website is done using asp.net c# 4 and EF 4.

I receive this error:

Could not load file or assembly 'AjaxControlToolkit' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded

Any idea how could I fix it? Thanks for your time on this


回答1:


It looks like you're trying to run it on a version of ASP.NET which is running CLR v2. It's hard to know exactly what's going on without more information about how you've deployed it, what version of IIS you're running etc (and to be frank I wouldn't be very much help at that point anyway, though others would). But basically, check your IIS and ASP.NET set-up, and make sure that everything is running v4. Check your application pool configuration, etc.




回答2:


check below link in which you can download suitable AjaxControlToolkit which suits your .NET version.

http://ajaxcontroltoolkit.codeplex.com/releases/view/43475

AjaxControlToolkit.Binary.NET4.zip - used for .NET 4.0

AjaxControlToolkit.Binary.NET35.zip - used for .NET 3.5




回答3:


Just Add AjaxControlToolkit.dll to your Reference folder.

On your Project Solution

Right Click on Reference Folder  > Add Reference > browse  AjaxControlToolkit.dll .

Then build.

Regards




回答4:


Might sound obvious but do you definitely have AjaxControlToolkit.dll in your bin?




回答5:


If you are working with Source safe then make a new directory and take the latest there, this solved my issue...thanks




回答6:


Right click in Project / Clean

That always works for me



来源:https://stackoverflow.com/questions/7695657/error-could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-depende

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!