[Mono-dev] Embedded Mono webservice problem
Janne Rantala
janne.rantala at gmail.com
Thu Jan 19 05:42:11 EST 2006
Hi,
I have initialized paths, both lib and etc dirs are pointing to same
directory, d:\monosetdirstest. My directory structure in that folder is
monosetdirstest
--etc
--mono
--1.0
--2.0
--mono
--1.0
--2.0
--gac
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.
:janne
2006/1/19, Robert Jordan <robertj at gmx.net>:
>
> 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
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060119/db2a0ea0/attachment.html
More information about the Mono-devel-list
mailing list