[Mono-dev] Class loading related problem with mono xsp and ikvm

Adar Wesley adar.wesley at gmail.com
Sun Oct 19 03:08:29 EDT 2008


Hi,

Try naming the configuration file web.config and putting it in the root
directory of your
web  application.

---
Adar Wesley

On Sat, Oct 18, 2008 at 12:52 AM, KyuHwan Kim <kyuhwan at gmail.com> wrote:

> Hi, everyone.
>
> I am doing some project with mono xsp and ikvm.
> But there is a class loading related problem.
>
> Here is my situation.
> I have the following dlls
> - dll compiled with IKVMC: JAVA.dll
> - C# dll: CS.dll --> call JAVA api above
>
> When one of the method in CS.dll which call JAVA.dll's method is
> called from web server, it throws System.NullReferenceException.
> It seems to be class loading related problem.
> And when I built test.exe file which calls the CS.dll's method without
> web server.
> It also had same problem. I resolved the problem with the
> test.exe.config which specify the class loader for IKVM
> The following is the config file.
>
> <?xml version="1.0" encoding="utf-8" ?>
> <configuration>
>    <appSettings>
>    <add key="ikvm-classloader:test"
> value="ikvm.runtime.AppDomainAssemblyClassLoader,
> IKVM.OpenJDK.ClassLibrary, Version=0.36.0.5, Culture=neutral,
> PublicKeyToken=null" />
>    </appSettings>
> </configuration>
>
> But, with web server (mono xsp) I don't know how to give the
> configuration to mono xsp or whatever.
> I expected that simply providing xsp.exe.config with <appSettings>
> above would resolve it. But it doesn't work.
> How to resolve this problem?
>
>
> Regards,
> Kyuhwan
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



-- 
---
Adar Wesley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20081019/174a9362/attachment.html 


More information about the Mono-devel-list mailing list