开发者

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

开发者 https://www.devze.com 2023-04-11 20:07 出处:网络
I\'m deployin开发者_开发百科g my website on the server. My website is done using asp.net c# 4 and EF 4.

I'm deployin开发者_开发百科g 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?


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.


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


Just Add AjaxControlToolkit.dll to your Reference folder.

On your Project Solution, Right Click on Reference Folder > Add Reference > browse AjaxControlToolkit.dll.

Then build.


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


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


Right click in Project / Clean

That always works for me

0

精彩评论

暂无评论...
验证码 换一张
取 消