I'm testing on Ubuntu 10.04 with mono 2.4.4~svn151842-1ubuntu4 monodevelop 2.2.1+dfsg-1ubuntu2 and libvirt and libvirt-csharp from git. Matthias 2010/10/20 <arnaud.champion@xxxxxxxxxx>: > It seems that the marshaling of the virConnectCredential structure failed, > but I only said that by view your debug traces. Can you say me which are the > environment of Mono (which version of Mono, which MonoDevelop, these kind of > things) ? because I have no idea about what's going wrong, I have to > reproduce the case on my system to debug correctly. > > Arnaud > > -------------------------------------------------- > From: <arnaud.champion@xxxxxxxxxx> > Sent: Wednesday, October 20, 2010 9:07 PM > To: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx> > Cc: <libvir-list@xxxxxxxxxx> > Subject: Re: [PATCH] C# Bindings - rename classes from > virConnectto Connect, virDomain to Domain, etc... > >> It's strange it works on my linux :S >> >> -------------------------------------------------- >> From: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx> >> Sent: Wednesday, October 20, 2010 8:02 PM >> To: <arnaud.champion@xxxxxxxxxx> >> Cc: <libvir-list@xxxxxxxxxx> >> Subject: Re: [PATCH] C# Bindings - rename classes from >> virConnect to Connect, virDomain to Domain, etc... >> >>> The transport shouldn't make a difference. To make it work with HTTPS >>> you'll have to replace the self-signed certificates on the ESX server >>> or tell libvirt to disable server certificate checks using: >>> >>> Âesx://192.168.0.17/?no_verify=1 >>> >>> Matthias >>> >>> 2010/10/20 Â<arnaud.champion@xxxxxxxxxx>: >>>> >>>> Okay I'll take a look, is the transport in http ? (just to be curious, I >>>> haven't been able to make it work in https) >>>> >>>> -------------------------------------------------- >>>> From: "Matthias Bolte" <matthias.bolte@xxxxxxxxxxxxxx> >>>> Sent: Wednesday, October 20, 2010 6:35 PM >>>> To: <arnaud.champion@xxxxxxxxxx> >>>> Cc: <libvir-list@xxxxxxxxxx> >>>> Subject: Re: [PATCH] C# Bindings - rename classes from >>>> virConnect >>>> to Connect, virDomain to Domain, etc... >>>> >>>>> 2010/10/20 Â<arnaud.champion@xxxxxxxxxx>: >>>>>> >>>>>> This patch rename file / classes from virConnect to Connect, virDomain >>>>>> to >>>>>> Domain, etc... >>>>>> >>>>>> Arnaud >>>>> >>>>> I pushed this one too and did a patch remove trailing white spaces on >>>>> top. >>>>> >>>>> I tested the bindings by successfully compiling and using the >>>>> virConnectOpen example on Linux in MonoDevelop. >>>>> >>>>> The virConnectOpenAuth example throws a System.NullReferenceException >>>>> when I try to connect to an ESX server. >>>>> >>>>> Marshaling clicked signal >>>>> Exception in Gtk# callback delegate >>>>> ÂNote: Applications can use GLib.ExceptionManager.UnhandledException >>>>> to handle the 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 >>>>> Âat System.String.memcpy4 (System.Byte* dest, System.Byte* src, Int32 >>>>> size) [0x00000] >>>>> Âat System.String.memcpy (System.Byte* dest, System.Byte* src, Int32 >>>>> size) [0x00000] >>>>> Âat (wrapper unknown) Libvirt.virConnectCredential:PtrToStructure >>>>> (intptr,object) >>>>> Âat (wrapper managed-to-native) >>>>> System.Runtime.InteropServices.Marshal:PtrToStructure >>>>> (intptr,System.Type) >>>>> Âat MainWindow.AuthCallback (IntPtr creds, UInt32 ncred, IntPtr >>>>> cbdata) [0x00034] in >>>>> >>>>> >>>>> .../libvirt-csharp-upstream/examples/MonoDevelop/virConnectOpenAuth/MainWindow.cs:146 >>>>> Âat (wrapper native-to-managed) MainWindow:AuthCallback >>>>> (intptr,uint,intptr) >>>>> Âat (wrapper managed-to-native) Libvirt.Connect:OpenAuth >>>>> (string,Libvirt.virConnectAuth&,int) >>>>> Âat MainWindow.OnButton1Clicked (System.Object sender, >>>>> System.EventArgs e) [0x00069] in >>>>> >>>>> >>>>> .../libvirt-csharp-upstream/examples/MonoDevelop/virConnectOpenAuth/MainWindow.cs:64 >>>>> Âat (wrapper managed-to-native) >>>>> System.Reflection.MonoMethod:InternalInvoke >>>>> (object,object[],System.Exception&) >>>>> Âat System.Reflection.MonoMethod.Invoke (System.Object obj, >>>>> BindingFlags invokeAttr, System.Reflection.Binder binder, >>>>> System.Object[] parameters, System.Globalization.CultureInfo culture) >>>>> [0x00000] >>>>> Â--- End of inner exception stack trace --- >>>>> Âat System.Reflection.MonoMethod.Invoke (System.Object obj, >>>>> BindingFlags invokeAttr, System.Reflection.Binder binder, >>>>> System.Object[] parameters, System.Globalization.CultureInfo culture) >>>>> [0x00000] >>>>> Âat System.Reflection.MethodBase.Invoke (System.Object obj, >>>>> System.Object[] parameters) [0x00000] >>>>> Âat System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] >>>>> Âat System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) >>>>> [0x00000] >>>>> Âat System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] >>>>> Âat GLib.Signal.ClosureInvokedCB (System.Object o, >>>>> GLib.ClosureInvokedArgs args) [0x00000] >>>>> Âat GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] >>>>> Âat GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr >>>>> return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr >>>>> invocation_hint, IntPtr marshal_data) [0x00000] >>>>> Âat GLib.ExceptionManager.RaiseUnhandledException(System.Exception >>>>> e, Boolean is_terminal) >>>>> Âat GLib.SignalClosure.MarshalCallback(IntPtr raw_closure, IntPtr >>>>> return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr >>>>> invocation_hint, IntPtr marshal_data) >>>>> Âat Gtk.Application.gtk_main() >>>>> Âat Gtk.Application.Run() >>>>> Âat virConnectOpenAuth.MainClass.Main(System.String[] args) in >>>>> >>>>> >>>>> .../libvirt-csharp-upstream/examples/MonoDevelop/virConnectOpenAuth/Main.cs:line >>>>> 13 >>>>> >>>>> Matthias >>>> >>>> >>>> >>> >> >> -- >> libvir-list mailing list >> libvir-list@xxxxxxxxxx >> https://www.redhat.com/mailman/listinfo/libvir-list > > > -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list