Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

.net

peverify

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]
like image 413
bentayloruk Avatar asked Jul 05 '11 15:07

bentayloruk


1 Answers

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.

like image 179
Josh Gallagher Avatar answered Oct 18 '22 10:10

Josh Gallagher