Problem
The
frustrating error message:
Could
not load file or assembly 'Microsoft.Practices.EnterpriseLibrary… blah blah
blah or one of its dependencies. The located assembly's manifest definition does
not match the assembly reference. (Exception from HRESULT: 0x80131040)
I
did a quick and dirty solution in my case because the version value causing the
issue was an outdated version which I could not locate. I updated the values:
·
version
‘X.XX.X.X’ with the value of the assembly in VS assembly properties
·
PublicKeyToken
‘ XXXXXXXXXXXXXXXXXX’ with the value I got from running the command
"%ProgramFiles%\Microsoft
SDKs\Windows\v7.0A\bin\sn.exe" -T
<add assembly=Microsoft.Practices.EnterpriseLibrary.Common, Version=X.XX.X.X, Culture=neutral, PublicKeyToken=XXXXXXXXXXXXXXXX"/>
</assemblies>
NOTE: You can add the functionality to get assembly Public
Key Token to Visual Studio using this guy’s instructions.