[Mono-dev] Embedded Mono webservice problem
Janne Rantala
janne.rantala at gmail.com
Fri Jan 20 03:03:03 EST 2006
I had to try with another ws client to see if the problem was with my
client, and I got different error this time. The service I tried to access
was net.xmethods.www.CurrencyExchangeService. But like with the other
client, all I did was create the service stub class.
I guess I'll have to fill in that bug report.
:janne
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Stacktrace:
in <0xffffffff>
System.Web.Services.Protocols.LogicalMethodInfo:IsBeginMethod (S
ystem.Reflection.MethodInfo)
in <0x19> System.Web.Services.Protocols.LogicalMethodInfo:IsBeginMethod(System.
Reflection.MethodInfo)
in <0x13b> System.Web.Services.Protocols.LogicalMethodInfo:Create (
System.Reflec
tion.MethodInfo[],System.Web.Services.Protocols.LogicalMethodTypes)
in <0x2ec> System.Web.Services.Protocols.LogicalTypeInfo:.ctor (System.Type)
in <0x7e> System.Web.Services.Protocols.TypeStubManager:GetLogicalTypeInfo(Syst
em.Type)
in <0xd> System.Web.Services.Protocols.TypeStubManager:GetTypeStub (
System.Type,
string)
in <0x23> System.Web.Services.Protocols.SoapHttpClientProtocol:.ctor ()
in <0x13> AssemblyTest.net.xmethods.www.CurrencyExchangeService:.ctor ()
in <0xfffdfdf8> (wrapper remoting-invoke-with-check)
AssemblyTest.net.xmethods.w
ww.CurrencyExchangeService:.ctor ()
in <0x70> Embed.MyType:.ctor ()
in <0xff3679c0> (wrapper runtime-invoke) System.Object:runtime_invoke_void(obje
ct,intptr,intptr,intptr)
2006/1/19, Robert Jordan <robertj at gmx.net>:
>
> Janne,
>
> Indeed, the exception looks slightly different if machine.config cannot
> be found:
>
> '.ctor()' invocation failed with:
> System.Reflection.TargetInvocationException: Exception has been thrown
> by the target of an invocation. --->
> System.Configuration.ConfigurationException: Cannot find
> c:\Programme\Mono-1.1.13\xetc\mono\1.0\machine.config ()
>
> in <0x000bb> System.Configuration.DefaultConfig:Init ()
>
> in <0x0000d> System.Configuration.DefaultConfig:GetConfig (System.String
> sectionName)
>
> in <0x0001a> System.Configuration.ConfigurationSettings:GetConfig
> (System.String sectionName)
>
> in <0x00059> System.Web.Services.Configuration.WSConfig:get_Instance ()
>
> in <0x00047>
> System.Web.Services.Protocols.SoapExtension:InitializeGlobalExtensions ()
>
>
> Please fill a bug report at http://mono-project.com/Bugs
>
> Robert
>
> > 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
> >>
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Mono-devel-list mailing list
> > Mono-devel-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
> _______________________________________________
> 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/20060120/f51910bd/attachment.html
More information about the Mono-devel-list
mailing list