Remove references to existing COM libraries and then readd the references with "Embed Interop Types = True".
The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
I have a WCF service which is referencing a COM dll. I keep getting the error as follows.
Could not load file or assembly 'Interop.ABBCLIENTLICENSEPROVIDERLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
To test if it is assembly related problem or reference related problem, i created a console application and used this reference ABBCLIENTLICENSEPROVIDERLib and it worked fine. There is no error in console application.
Only the WCF application is throwing the exception.
This is high priority task and immediate help is appreciated.
1 additional answer
Sort by: Most helpful
-
AddWebSolution 161 Reputation points
2021-05-28T10:42:52.967+00:00 Try this first :-
right click on reference -> properties -> change 'Specific Version' to false.
Also refer this :-
the-located-assemblys-manifest-definition-does-not-match-the-assembly-reference
https://stackoverflow.com/questions/4187907/net-picking-wrong-referenced-assembly-version