On Feb 15, 2008, at 4:03 PM, rory...@gmail.com wrote:
What is the proper method for disconnecting, and then later re-
connecting to a jabber session?
I currently use: JabberClient.Close(true)
But then when I reconnect using JabberClient.Connect() i get the
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> jabber.JIDFormatException: Bad
at jabber.JID..ctor(String jid)
at jabber.JID.op_Implicit(String jid)
at jabber.connection.Room.m_stream_OnProtocol(Object sender,
at jabber.protocol.ProtocolHandler.Invoke(Object sender, XmlElement
--- End of inner exception stack trace ---
The only workaround that has succeeded is to set JabberClient = new
JabberClient(...) just before calling JabberClient.Connect(). This
works every time, but seems unnecessary.