[Mono-dev] Embedded Mono webservice problem

Robert Jordan robertj at gmx.net
Thu Jan 19 05:00:34 EST 2006


Janne Rantala wrote:
> Hi,
> 
> I'm having problems accessing webservice assembly from embedded mono. Only
> thing that the assembly does is create the service stub class, it doesn't
> even call the service method. Here's the error message I get:
> 
> Unhandled Exception: System.Reflection.TargetInvocationException: Exception
> has
> been thrown by the target of an invocation. --->
> System.NullReferenceException:
> Object reference not set to an instance of an object
> in <0x0004c>
> System.Web.Services.Protocols.SoapExtension:InitializeGlobalExtensi
> ons ()

It seems like you didn't initialize the runtime's paths. Try to call
mono_set_dirs (libdir, etcdir) somewhere before mono_jit_init.

libdir: the path to mono's lib directory, i.e. /usr/local/lib
etcdir: the path to mono's etc directory, i.e. /usr/local/etc

Robert




More information about the Mono-devel-list mailing list