Subject: Unhandled exception
I passed in a malformed JID ( jsmith.gmail.com instead of jsmith@gmail.com ) into the agsxmpp sdk and it generated ( I believe ) and unhandled exception against talk.google.com. Maybe there is a try/catch missing in my application but I don't know where it should go. (the error was something a 403 forbidden)
The exception is generated in the agsxmpp class: XGoogleTokenMechanism
The line is: HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(result);
The method is: private void OnGetClientAuthResponse(IAsyncResult result)
I put a try/catch in OnGetClientAuthResponse and called base.XmppClientConnection.Close(); in the handler.
By the way, I am just experimenting with agsxmpp so if I posted this in the wrong place or it is an obvious programmer error please disregard.
The exception is generated in the agsxmpp class: XGoogleTokenMechanism
The line is: HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(result);
The method is: private void OnGetClientAuthResponse(IAsyncResult result)
I put a try/catch in OnGetClientAuthResponse and called base.XmppClientConnection.Close(); in the handler.
By the way, I am just experimenting with agsxmpp so if I posted this in the wrong place or it is an obvious programmer error please disregard.
ayyrk
Show profile
Link to this post
