User1724605321 posted
Hi gkrishnat ,
The problem is that the DLL that you are using and the one that is referenced in your project are different.
You can try :
-
Open the properties for the DLL reference in your project and set Version Specific to false.
-
Remove the reference, delete the DLL from the bin folder, and re-add the reference.
-
You could also have a different/incorrect version in your GAC. In order to make sure that you are always using a specific, known version create an assemblies folder relative to your project directory, copy the dll to that directory, and add a reference to
the DLL in the assemblies directory rather than one in GAC or elsewhere on your machine. This will ensure that only the specific version that you have targeted for the application will be used rather than any version that is updated on your machine at a later
time.
Reference : https://stackoverflow.com/questions/8431220/could-not-load-file-or-assembly-microsoft-practices-enterpriselibrary-common-o
Please also check other replies in that thread for potential solution .
Best Regards,
Nan Yu