ERROR Could not load file or assembly 'AjaxCon

2019-01-15 06:37发布

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

5条回答
爷、活的狠高调
2楼-- · 2019-01-15 06:46

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

查看更多
Deceive 欺骗
3楼-- · 2019-01-15 06:47

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

查看更多
倾城 Initia
4楼-- · 2019-01-15 06:58

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

查看更多
趁早两清
5楼-- · 2019-01-15 07:01

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

查看更多
Animai°情兽
6楼-- · 2019-01-15 07:04

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.

查看更多
登录 后发表回答