[Mono-dev] Embedded Mono webservice problem

Janne Rantala janne.rantala at gmail.com
Thu Mar 2 09:30:01 EST 2006


It seems that there has been some development regarding this problem, can
any one tell me what this "exePath must be specified when not running inside
a stand alone exe." means and where that path must be specified?


Unhandled Exception: System.TypeInitializationException: An exception was
thrown
 by the type initializer for System.Xml.Serialization.XmlSerializer --->
System.
ArgumentException: exePath must be specified when not running inside a stand
alo
ne exe.
in <0x00253>
System.Configuration.ConfigurationManager:OpenExeConfigurationInter
nal (ConfigurationUserLevel userLevel, System.Reflection.Assemblycalling_assemb
ly, System.String exePath)
in <0x0003b>
System.Configuration.ClientConfigurationSystem:System.Configuration
.Internal.IInternalConfigSystem.GetSection (System.String configKey)
in <0x0001f> System.Configuration.ConfigurationManager:GetSection (
System.String
 sectionName)
in <0x0001f> System.Configuration.DefaultConfig:GetConfig (System.Stringsection
Name)
in <0x00017> System.Configuration.ConfigurationSettings:GetConfig (
System.String
 sectionName)
in <0x001cd> System.Xml.Serialization.XmlSerializer:.cctor ()--- End of
inner ex
ception stack trace ---

:janne

2006/1/20, Janne Rantala <janne.rantala at gmail.com>:
>
> 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/20060302/45277c78/attachment.html 


More information about the Mono-devel-list mailing list