[Mono-dev] modified classes compile but don't find method on running
Iván Herrero
navitux at gmail.com
Sat Jun 3 22:07:03 EDT 2006
Hi. I've been hacking the sources to provide support to reference the element
to sign in a xml doc with an xpath expression. For that, I've modified the
Reference.cs and SignedXml.cs classes. When I recompile the code of mono and
make install it, the new method doesn't appear in monodevelop. However, I've
managed to compile it from the command line, but when I run the test code
that use the new method, this is not found, and it crashes:
navitux at darkness:~/Projects/firmado/firmado$
mcs -r:System.Security -r:Mono.Security -r:System.Xml Main.cs
Compilation succeeded - 6 warning(s)
navitux at darkness:~/Projects/firmado/firmado$ ./Main.exe
** (./Main.exe:25186): WARNING **: Missing member SetXPathReference in type
Reference,
assembly /usr/lib/mono/gac/System.Security/1.0.5000.0__b03f5f7f11d50a3a/System.Security.dll
Unhandled Exception: System.MissingMethodException: Method not
found: 'System.Security.Cryptography.Xml.Reference.SetXPathReference'.
in <0x00000> <unknown method>
in <0x00039> firmado.MainClass:Main (System.String[] args)
I'm quite surprised with the error, searching the library in
gac/System.Security/1.0.500..., which seems not to be in the standard library
tree. Added to that, depending on the compiler used (mcs, gmcs), the library
used is in 1.0.500000... or 2.0.0.0__b03f5f7f11d50a3a folder.
Could you put some light into this so I can test and improve these hacks?
Thanks,
Iván.
More information about the Mono-devel-list
mailing list