Re: [Ikvm-developers] DLL fixup problem (System.Security)
Brought to you by:
jfrijters
|
From: Michael K. <mi...@sa...> - 2006-08-23 17:50:57
|
A progress report on this: I've got it working by doing
Assembly.Load("saxon8sa.dll") before doing the dynamic load on the Java
class; the Java class will then be found within the loaded assembly.
Which in fact the program that was consistently working was already doing.
The only problem now is that this only works if the entry point to the
user's application is in the same directory as the Saxon DLLs. Getting it to
work more flexibly, I know, is not an IKVM issue, it just means I need to
understand .NET dynamic loading rather better than I do at the moment. I
know I need to supply some kind of full assembly name so the code will be
found in the GAC: I just need to work out the details of how to do that.
Michael Kay
Saxonica Limited
> -----Original Message-----
> From: ikv...@li...
> [mailto:ikv...@li...] On
> Behalf Of Michael Kay
> Sent: 23 August 2006 17:59
> To: 'Jeroen Frijters'; ikv...@li...
> Subject: Re: [Ikvm-developers] DLL fixup problem (System.Security)
>
> >
> > This stack trace indicates that
> "com.saxonica.validate.DotNetVerifier"
> > was dynamically compiled (at runtime)
>
> Wow: that's a shock! I just assumed that because I had
> compiled the code into a DLL, it was the version in the DLL
> that would be used at runtime. But yes, one component of my
> product is doing dynamic loading of other components (which
> may or may not exist in the customer's environment), so I
> guess it's entirely possible that it's picking the component
> up from a JAR file somewhere and compiling it on the fly.
>
> Back to the drawing board, I think. Thanks for your help as
> always. This technology does some amazing things, which are
> usually exactly what you want, and just occasionally come and
> bite you in the ankle.
>
> Michael Kay
> Saxonica Limited
>
>
>
>
> --------------------------------------------------------------
> -----------
> Using Tomcat but need to do more? Need to support web
> services, security?
> Get stuff done quickly with pre-integrated technology to make
> your job easier Download IBM WebSphere Application Server
> v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&
> dat=121642
> _______________________________________________
> Ikvm-developers mailing list
> Ikv...@li...
> https://lists.sourceforge.net/lists/listinfo/ikvm-developers
|