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

KyuHwan Kim kyuhwan at gmail.com
Fri Oct 17 18:52:47 EDT 2008

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" ?>
    <add key="ikvm-classloader:test"
IKVM.OpenJDK.ClassLibrary, Version=, Culture=neutral,
PublicKeyToken=null" />

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?


More information about the Mono-devel-list mailing list