[Mono-list] Different random errors connecting to a service
Alberto G
albertogdev at gmail.com
Thu Jan 29 10:48:40 UTC 2015
Hi all, I am trying to connect to a vendor SOAP service and I created a
very basic 7 lines consoleapp that just connect to the service but when
trying to run same .exe several times I get 3 different output errors each
time. Same application runs ok in windows.
Why for the same application without doing anything different the errors
are so random/different? Looks like execution 1 is almost fine but is
failing to dispose something when application exit.
I can provide SSH access if necessary or provide any additional information
that is necessary. This is running mono 3.12 on ubuntu 14.10.
Source Code:
static void Main(string[] args)
{
var vc = new VimClient();
Console.WriteLine("Connecting...");
vc.Connect("server01", CommunicationProtocol.Https, 443);
var login = vc.Login("root", "xxxx");
Console.WriteLine("Disconnect");
vc.Disconnect();
Console.WriteLine("App_Exit");
}
Errors:
Execution 1
root at ubuntu:/tmp # mono app.exe
Connecting...
Disconnect
App_Exit
Stacktrace:
Native stacktrace:
mono() [0x4accac]
mono() [0x50451f]
mono() [0x42a7c7]
/lib/x86_64-linux-gnu/libpthread.so.0(+0xfc90) [0x7fcce936ac90]
mono() [0x5d072b]
mono() [0x5d0ab2]
mono() [0x5d110d]
mono() [0x5c7458]
mono() [0x5c78f2]
mono() [0x5c9278]
mono() [0x5c9819]
mono() [0x5ccc15]
mono(mono_gc_collect+0x28) [0x5cd2d8]
mono(mono_domain_finalize+0x94) [0x59df14]
mono() [0x424c7b]
mono(mono_main+0x115f) [0x48309f]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
[0x7fcce8fb7ec5]
mono() [0x422c79]
Debug info from gdb:
=================================================================
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.
=================================================================
Aborted
Execution 2
root at ubuntu:/tmp # mono app.exe
Unhandled Exception:
System.ArgumentException: invalid header value
at System.Net.WebHeaderCollection.SetInternal (System.String name,
System.String value) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.set_UserAgent (System.String value)
[0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check)
System.Net.HttpWebRequest:set_UserAgent (string)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest
(System.Uri uri) [0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest
(System.Uri uri) [0x00000] in <filename unknown>:0
at
System.Web.Services.Protocols.SoapHttpClientProtocol.GetRequestForMessage
(System.Uri uri, System.Web.Services.Protocols.SoapClientMessage message)
[0x00000] in <filename unknown>:0
Execution 3
root at ubuntu:/tmp # mono app.exe
Connecting...
Unhandled Exception:
System.NullReferenceException: Object reference not set to an instance of
an object
at System.String.FindNotWhiteSpace (Int32 pos, Int32 target, Int32
change) [0x00000] in <filename unknown>:0
at System.String.Trim () [0x00000] in <filename unknown>:0
at System.Net.WebHeaderCollection.SetInternal (System.String name,
System.String value) [0x00000] in <filename unknown>:0
at System.Net.HttpWebRequest.set_UserAgent (System.String value)
[0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check)
System.Net.HttpWebRequest:set_UserAgent (string)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebRequest
(System.Uri uri) [0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.SoapHttpClientProtocol.GetWebRequest
(System.Uri uri) [0x00000] in <filename unknown>:0
at
System.Web.Services.Protocols.SoapHttpClientProtocol.GetRequestForMessage
(System.Uri uri, System.Web.Services.Protocols.SoapClientMessage message)
[0x00000] in <filename unknown>:0
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
(System.String method_name, System.Object[] parameters) [0x00000] in
<filename unknown>:0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20150129/d06d30e2/attachment.html>
More information about the Mono-list
mailing list