Calling from ASP.NET running inside XSP2

Bug #587279 reported by Danny Waite
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NDesk D-Bus
New
Undecided
Unassigned

Bug Description

The same code works from a console app, but if I try to use it inside a .aspx page, the XSP2 web server exits with:

  at NDesk.DBus.Signature.GetSig (System.Type) <0x00342>
  at NDesk.DBus.TypeImplementer.GenHookupMethod (System.Reflection.Emit.ILGenerator,System.Reflection.MethodInfo,System.Reflection.MethodInfo,string,string) <0x0094f>
  at NDesk.DBus.TypeImplementer.Implement (System.Reflection.Emit.TypeBuilder,System.Type) <0x00204>
  at NDesk.DBus.TypeImplementer.GetImplementation (System.Type) <0x0008d>
  at NDesk.DBus.BusObject.GetObject (NDesk.DBus.Connection,string,NDesk.DBus.ObjectPath,System.Type) <0x00012>
  at NDesk.DBus.Connection.GetObject (System.Type,string,NDesk.DBus.ObjectPath) <0x0002a>
  at NDesk.DBus.Connection.GetObject<object> (string,NDesk.DBus.ObjectPath) <0x00026>
  at Test.Standalone.CLI.Proxy.CLIProxy.Commit (Test.Shared.Configuration) <0x0003a>
  at Test.Standalone.Service.Service.Commit (string,Test.Enterprise.DataTypes.Device) <0x00077>
  at (wrapper runtime-invoke) Test.Standalone.Service.Service.runtime_invoke_object__this___object_object (object,intptr,intptr,intptr) <0xffffffff>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception&) <0x00004>
  at (wrapper managed-to-native) System.Reflection.MonoMethod.InternalInvoke (object,object[],System.Exception&) <0xffffffff>
  at System.Reflection.MonoMethod.Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) <0x0009e>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x00022>
  at System.Web.Services.Protocols.LogicalMethodInfo.Invoke (object,object[]) <0x0006f>
  at System.Web.Services.Protocols.HttpSoapWebServiceHandler.Invoke (System.Web.HttpContext,System.Web.Services.Protocols.SoapServerMessage) <0x00110>
  at System.Web.Services.Protocols.HttpSoapWebServiceHandler.ProcessRequest (System.Web.HttpContext) <0x00128>
  at System.Web.HttpApplication/<Pipeline>c__Iterator2.MoveNext () <0x02825>
  at System.Web.HttpApplication.Tick () <0x0002e>
  at System.Web.HttpApplication.Start (object) <0x001a4>
  at System.Web.HttpApplication.System.Web.IHttpHandler.ProcessRequest (System.Web.HttpContext) <0x00032>
  at System.Web.HttpRuntime.Process (System.Web.HttpWorkerRequest) <0x001fc>
  at System.Web.HttpRuntime.RealProcessRequest (object) <0x00050>
  at System.Web.HttpRuntime.ProcessRequest (System.Web.HttpWorkerRequest) <0x0003f>
  at Mono.WebServer.MonoWorkerRequest.ProcessRequest () <0x00087>
  at Mono.WebServer.BaseApplicationHost.ProcessRequest (Mono.WebServer.MonoWorkerRequest) <0x00088>
  at Mono.WebServer.XSPApplicationHost.ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) <0x0035a>
  at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPApplicationHost.ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) <0xffffffff>
  at (wrapper xdomain-dispatch) Mono.WebServer.XSPApplicationHost.ProcessRequest (object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string) <0xffffffff>
  at (wrapper xdomain-invoke) Mono.WebServer.XSPApplicationHost.ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) <0xffffffff>
  at (wrapper remoting-invoke-with-check) Mono.WebServer.XSPApplicationHost.ProcessRequest (int,long,int,long,int,string,string,string,string,byte[],string,intptr,Mono.WebServer.SslInformations) <0xffffffff>
  at Mono.WebServer.XSPWorker.RunInternal (object) <0x005ca>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

        /usr/local/bin/mono [0x80cb6d9]
        /usr/local/bin/mono [0x80f57f1]

Revision history for this message
Danny Waite (dannywaite7) wrote :

I should add the code exits at line 2, bus.GetObject.

Bus bus = Bus.Session;
IRunner runner = bus.GetObject<IRunner>(busName, objPath);
CommitResult result = runner.Commit(config);

TIA, Danny

Revision history for this message
Oskar Berggren (oskar-berggren) wrote :

Is the first few lines of the output missing from the report? Wasn't there an exception name and message there?

Anyway, I'm caling bus.GetObject() when running under xsp2, with success, so the must be some specifics in this case.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.