If you get the error message "error : Failed to open meta data" when trying to open a file with ildasm.exe (Microsoft's .Net intermediate language (IL) disassembler), check to make sure that the ildasm version you are using matches the .Net version that the target file was built with. I encountered this problem when I was trying to run ildasm from the command line targetting a .Net 2.0 assembly, but the first instance of ildasm.exe on my path was the 1.1 version.
hey, thanks for your tip, I have Vis Studio 2003 and 2005 installed on my machine and I was unknowingly trying to disassemble an interop built with 05 using an 03 ildasm. Your tip solved my problem instantly. Ta. Sammy
ReplyDeleteThanks for this. Google pointed me here and it was exactly my issue.
ReplyDeleteNext round on me :)
delete archive ildasm.exe.config
ReplyDelete