The located assembly's manifest definition does not match the assembly reference
The .NET Assembly loader:
- is unable to find 1.2.0.203
- but did find a 1.2.0.200
This assembly does not match what was requested and therefore you get this error.
In simple words, it can't find the assembly that was referenced. Make sure it can find the right assembly by putting it in the GAC or in the application path. Also see https://docs.microsoft.com/archive/blogs/junfeng/the-located-assemblys-manifest-definition-with-name-xxx-dll-does-not-match-the-assembly-reference.
Assembly's manifest definition does not match assembly reference
Here's how I managed to solve it:
Go to the solution explorer and choose Antlr
under References, right-click and say properties. Make sure the file version is the same the compiler is looking for. In my case, MSBuild wanted version 5.5.0.2, but the reference properties showed an earlier 2.x version.
All I had to do is go to the package manager console and type:
PM> update-package Antlr
Then build the project again, and in-case you get the same error for more assemblies, update them as well. Your issue will be resolved
How to resolve The located assembly's manifest definition does not match the assembly reference. error?
The problem was that I had added reference of old unmodifed PdfiumViewer dll to another project.Hence, there was conflict between the two dlls (old and customized) at runtime.I removed the old dll reference and it worked.
The located assembly's manifest definition does not match the assembly reference, WiX registration
Enabling fusion log as pointed out by Klaus has been really helpful.
I had accidently signed the assembly with a different key and not changed PublicKeyToken in the WiX .wxs file.
The located assembly's manifest definition does not match the assembly reference
The .NET Assembly loader:
- is unable to find 1.2.0.203
- but did find a 1.2.0.200
This assembly does not match what was requested and therefore you get this error.
In simple words, it can't find the assembly that was referenced. Make sure it can find the right assembly by putting it in the GAC or in the application path. Also see https://docs.microsoft.com/archive/blogs/junfeng/the-located-assemblys-manifest-definition-with-name-xxx-dll-does-not-match-the-assembly-reference.
Related Topics
What Is a Nullreferenceexception, and How to Fix It
Case Insensitive 'Contains(String)'
Casting VS Using the 'As' Keyword in the Clr
How to Get the Application'S Path in a .Net Console Application
Is There a Reason For C#'S Reuse of the Variable in a Foreach
Evaluating String "3*(4+2)" Yield Int 18
Parameterized Query For MySQL With C#
Any Difference Between "Await Task.Run(); Return;" and "Return Task.Run()"
How to Give a C# Auto-Property an Initial Value
How to Escape Braces (Curly Brackets) in a Format String in .Net