HRESULT: 0x80131040: The located assembly's manifest definition does not match the assembly reference

chethan picture chethan · Sep 18, 2008 · Viewed 221.6k times · Source

The located assembly's manifest definition does not match the assembly reference

getting this when running nunit through ncover. Any idea?

Answer

Jeremy McGee picture Jeremy McGee · Sep 18, 2008

This is a mismatch between assemblies: a DLL referenced from an assembly doesn't have a method signature that's expected.

Clean the solution, rebuild everything, and try again.

Also, be careful if this is a reference to something that's in the GAC; it could be that something somewhere is pointing to an incorrect version. Make sure (through the Properties of each reference) that the correct version is chosen or that Specific Version is set false.