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
This question is related to
c#
asp.net
deployment
ajaxcontroltoolkit
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
Right click in Project / Clean
That always works for me
Might sound obvious but do you definitely have AjaxControlToolkit.dll in your bin?
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
If you are working with Source safe then make a new directory and take the latest there, this solved my issue...thanks
Source: Stackoverflow.com