[MonoTouch] Exceptions with no stack trace in my code

Rolf Bjarne Kvinge rolf at xamarin.com
Tue Dec 13 07:27:37 EST 2011


Hi,

It looks like you're using (async) web services. The processing is
automatically done on a separate thread, so it is expected that none of
your code shows up in the stack trace (you provided an event handler or a
callback which will be called when the processing is done, that's when your
code will show up).

In this case it looks like the connection to the server was interrupted,
though exactly how you should deal with that depends on your app.

Rolf

On Tue, Dec 13, 2011 at 4:35 AM, Dean Cleaver <
dean.cleaver at xceptionsoftware.com> wrote:

>  Hi,
>
>
>
> I am getting various exceptions from a web service in code trapped I
> believe by the “AppDomain.CurrentDomain.UnhandledException”, and then
> reported back to me.
>
>
>
> System.Net.WebException: Error: ConnectFailure (interrupted) --->
> System.Net.Sockets.SocketException: interrupted
> at System.Net.Sockets.Socket.Connect (System.Net.EndPoint remoteEP)
> [0x00000] in :0
> at System.Net.WebConnection.Connect (System.Net.HttpWebRequest request)
> [0x00000] in :0
> --- End of inner exception stack trace ---
> at System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult
> asyncResult) [0x00000] in :0
> at System.Net.HttpWebRequest.GetRequestStream () [0x00000] in :0
> at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke
> (System.String method_name, System.Object[] parameters) [0x00000] in :0
>
>
>
> Confusing thing is, there is no reference to any of my code at all. How
> can this happen? Surely somewhere in every call regardless of the thread,
> there has to be at least one function of mine – given I never directly
> create a thread calling code other than mine.
>
>
>
> Any ideas how to work out how this exception and other similar ones are
> occurring?
>
>
>
> Dino
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111213/4dc51779/attachment-0001.html 


More information about the MonoTouch mailing list