[Mono-dev] Embedded Mono webservice problem
janne.rantala at gmail.com
Thu Jan 19 05:42:11 EST 2006
I have initialized paths, both lib and etc dirs are pointing to same
directory, d:\monosetdirstest. My directory structure in that folder is
I've tried setting etc dir to d:\monosetdirstest\etc but it doesn't help
either. Mono does find assemblies and gac with current setting though.
2006/1/19, Robert Jordan <robertj at gmx.net>:
> Janne Rantala wrote:
> > Hi,
> > I'm having problems accessing webservice assembly from embedded mono.
> > thing that the assembly does is create the service stub class, it
> > even call the service method. Here's the error message I get:
> > Unhandled Exception: System.Reflection.TargetInvocationException:
> > 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
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-devel-list