After bringing the cecil-0.9 version of MonoMerge as far as
successfully merging everything up to the point that reflector and
ildasm can successfully handle/disassembly the merged assembly, I do
still get an XmlSyntaxException when running a merged windows application:
"Invalid syntax on line 1 - Unexpected end of file.."
thrown at:
mscorlib.dll!System.Security.Util.Parser.ParseContents(System.Security.SecurityElement
e = {System.Security.SecurityElement}, bool restarted = false) + 0xd0e
Bytes
mscorlib.dll!System.Security.Util.Parser.Parser(System.Security.Util.Tokenizer
t = {System.Security.Util.Tokenizer}) + 0x53 Bytes
mscorlib.dll!System.Security.Util.Parser.Parser(System.IO.BinaryReader
input = {System.IO.BinaryReader}) + 0x28 Bytes
mscorlib.dll!System.Security.PermissionSet.DecodeXml(byte[] data =
{Length=712}, int flags = 2032091152) + 0x74 Bytes
merged.exe!DGCT.MainForm.MainForm() + 0xa4 Bytes
merged.exe!DGCT.MainForm.Main() + 0xb4 Bytes
The exception seems to occur when calling
'MainForm::InitializeComponent()' from 'MainForm::.ctor()'. The
exception message sounds like there has been an error writing a
SecurityDeclaration, however, I walked the complete merged assembly and
there is no empty XML and no XML that fails to parse in all the
SecurityDeclarations.
Any idea what I have been missing?
Thanks for any hint,
Simon
--
--
mono-cecil