Tuesday, January 21, 2014

Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.

This is one of the common error you get when you start using AJAX first time in your project. Nothing to panic about this, you can easily resolve the error “System.IO.FileNotFoundException: Could not load file or assembly 'AjaxMin, Version=4.97.4951.28478, Culture=neutral, PublicKeyToken=21ef50ce11b5d80f' or one of its dependencies. The system cannot find the file specified.” by copying the missing dll in the correct folder.

image

If you look at the error once again you may notice that error clearly suggest it cannot find the assembly 'AjaxMin’ which means once you open your project bin folder you may not find the 'AjaxMin.dll’ file.

So to resolve this issue what you have to do is, search for 'AjaxMin.dll’ and copy this into the project bin folder.

image

After copying this 'AjaxMin.dll’ in your project bin folder try to run the application and see if it works fine.

4 comments:

Anonymous said...

Bad solution. Just set "Copy local" to true on the referenced assembly.

This error can also happen if you have a newer version of AjaxMin.dll in your bin directory and is a known issue as of now...

Unknown said...

Go to PM
PM> Install-Package AjaxMin -Version 4.97.4951.28483

Its work for me.

yosabrams0918 said...

I’m impressed, I have to say. Really hardly ever do I encounter a blog that’s each educative and entertaining, and let me tell you, you've gotten hit the nail on the head. Your concept is excellent; the problem is one thing that not enough persons are speaking intelligently about. I am very pleased that I stumbled across this in my search for one thing regarding this. free online casino slots

Anonymous said...

I found for WFFM that moving the script from the @Html.RenderScriptBlock() at the bottom of the razorfile to the beginning of the:
@using (Html.Beingfield)){
was the solution for me as the dll was present and the correct version already.