Search code examples
.netpeverify

Is there a simple way to decode PEVerify errors and warnings?


Given PEVerify error and warning output such as that below, how does one track back to the offending class and interface names? Assume I am not a compiler author or IL magician.

[MD]: Error: Class implements interface but not method (class:0x02000091; interface:0x06000169;method:0x00000000). [token:0x09000043]
[MD]: Warning: MemberRef has a duplicate, token=0x0a0001ff. [token:0x0A000060]

Solution

  • Use ILDASM and load the assembly in question. Go to View->MetaInfo->Show! This opens up a text viewer showing a human readable version of the assembly metadata. Search for the hex identifiers (but skip the "0x" portion) to find the relevant class, interface and methods.