I've got an assembly in my project that I'm using throughout my project without problems. There is however one class which throws an error when trying to use the DLL.
"Could not load file or assembly XXX or one of its dependencies. The located assembly’s manifest definition does not match the assembly reference."
The version of my DLL is 1.0.0.1 but the class seems to be looking for 1.0.0.0. I have checked everywhere and cannot find a reference to 1.0.0.0 anywhere.
I ran fuslogvw to see where the conflict is happening and looks like:
=== Pre-bind state information ===
LOG: DisplayName = XXXX, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dcd25968a59ae23f
(Fully-specified)
LOG: Appbase = XXXX
LOG: Initial PrivatePath = NULL
LOG: Dynamic Base = NULL
LOG: Cache Base = NULL
LOG: AppName = XXXX
Calling assembly : EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
Why is EntityFramework trying to call my DLL and why would it be looking for a lower version. Could i perhaps do a DLL redirect somewhere to fix this?
Thanks
EDIT After in depth investigation it seems like there was an additional EF package (with a lower version number than the current one). I uninstalled all packages, had to manually delete them from the package folder as well, and re installed the latest. Together with the DLL redirect, this seems to have solved the problem