I'm Working on WCF Service with target .net framework is 4.6
I've already gone through this question : Question
But my problem is somewhat different here.
Earlier I was using older version of Microsoft Enterprise Libraries and now I've have to move towards updated version [I found them on nuget].
Version of Microsoft.Practices.EnterpriseLibrary.Common library was 5.0.414.0 and now I have update version 6.0.1304.0.
Same way for other two (Caching 5.0.414.0 to 5.0.505.0 and Logging 5.0.414.0 to 6.0.1304.0)
For that I have changed reference to dll accordingly and also in configuration file.
But while trying to create a Cache Manager, I'm getting an exception like below.
Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Common, Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Odd thing here is version number for common library, it was never 5.0.505.0. Instead this version number is supposed to be of new library of caching. Thus I'm assuming this problem isn't only related to Common library (or isn't related to common library) but related to caching too.
EDIT:
I had one other project using the same dlls (reference path is same for both). In that project, I'm just using Logging dll only. After replacing old dlls with newer ones, in this project too I'm having similar problem.
Only difference is Earlier Logging dll version was 5.0.414.0 and now 6.0.1304.0
as version number in exception matches with current version umber I'm assuming that now it is looking in correct dll
and I'm having exception like
loggingConfiguration: Could not load file or assembly 'Microsoft.Practices.EnterpriseLibrary.Logging, Version=6.0.1304.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
Can anyone help me to get the situation and possible solution for it.