[Ikvm-developers] DLL fixup problem (System.Security)
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2006-08-23 14:16:35
|
I'm struggling with a problem of my IKVMC-compiled code fixing up to a DLL
that it references. It's frustrating because it works in one application and
fails in another, and I can't see what they are doing differently. In fact,
when running from within Visual Studio, it succeeds while debugging, and
fails when running without the debugger.
At compile time, I've got Java code which contains:
import cli.System.Security.Cryptography.Xml.SignedXml;
and then i method loadLicense():
SignedXml sxml = new SignedXml(xmldoc);
This gets compiled and converted by IKVMC into an assembly saxon8sa.dll,
using the flag
-reference:c:\Windows\Microsoft.NET\Framework\v1.1.4322\System.Security.dll
At run time, when the above statement is executed, it's failing with the
exception:
Exception java.lang.NoClassDefFoundError
cli.System.Security.Cryptography.Xml.SignedXml
java.lang.NoClassDefFoundError:
cli.System.Security.Cryptography.Xml.SignedXml
at JavaException.NoClassDefFoundError(Unknown Source)
at IKVM.Runtime.ByteCodeHelper.LoadTypeWrapper(Unknown Source)
at IKVM.Runtime.ByteCodeHelper.DynamicNewCheckOnly(Unknown Source)
at
com.saxonica.validate.DotNetVerifier.loadLicense(DotNetVerifier.java)
I'm using IKVM 0.30.0.0, but I had the problem on 0.26 as well (I moved to
see if it would go away).
Michael Kay
http://www.saxonica.com/
|