[Mono-dev] Embedded Mono webservice problem

Janne Rantala janne.rantala at gmail.com
Thu Jan 19 04:17:20 EST 2006


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 ()
in <0x00038> System.Web.Services.Protocols.SoapExtension:GetTypeExtensions(Syst
em.Type serviceType)
in <0x00369> System.Web.Services.Protocols.SoapTypeStubInfo:.ctor (
System.Web.Se
rvices.Protocols.LogicalTypeInfo logicalTypeInfo)
in <0x00000> <unknown method>
in (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke(obj
ect,object[])
in <0x0008d> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFla
gs invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
Syst
em.Globalization.CultureInfo culture)--- End of inner exception stack trace
---

in <0x0010e> System.Reflection.MonoCMethod:Invoke (System.Object obj,
BindingFla
gs invokeAttr, System.Reflection.Binder binder, System.Object[] parameters,
Syst
em.Globalization.CultureInfo culture)
in <0x0001c> System.Reflection.MonoCMethod:Invoke (BindingFlags invokeAttr,
Syst
em.Reflection.Binder binder, System.Object[] parameters,
System.Globalization.Cu
ltureInfo culture)
in <0x00249> System.Activator:CreateInstance (System.Type type, BindingFlags
bin
dingAttr, System.Reflection.Binder binder, System.Object[] args,
System.Globaliz
ation.CultureInfo culture, System.Object[] activationAttributes)
in <0x00024> System.Activator:CreateInstance (System.Type type,
System.Object[]
args, System.Object[] activationAttributes)
in <0x00020> System.Activator:CreateInstance (System.Type type,
System.Object[]
args)
in <0x0003d>
System.Web.Services.Protocols.LogicalTypeInfo:CreateTypeStubInfo (S
ystem.Type type)
in <0x00056> System.Web.Services.Protocols.LogicalTypeInfo:GetTypeStub (
System.S
tring protocolName)
in <0x0001b> System.Web.Services.Protocols.TypeStubManager:GetTypeStub (
System.T
ype t, System.String protocolName)
in <0x00023> System.Web.Services.Protocols.SoapHttpClientProtocol:.ctor ()
in <0x00013> AssemblyTest.localhost.HeartBeaterService:.ctor ()
in (wrapper remoting-invoke-with-check)
AssemblyTest.localhost.HeartBeaterServic
e:.ctor ()
in <0x00070> Embed.MyType:.ctor ()

Any ideas to repair this? Thanks in advance!

Cheers,
Janne
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060119/964e889a/attachment.html 


More information about the Mono-devel-list mailing list