Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
shakeofabiomen #1
Member since Oct 2006 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: XMPP_OnLogin not getting called
Hi,

This is code that i am trying to use. When the open method of the XMPPClientConnection is called, the XMPP_OnLogin
event is never fired. Did download the new samples from SVN. The Sample C# version works perfectly fine, but the
Sample VB.Net version works the same way as my Application. The OnLogin Event is never fired. Have some one come
accross such a situation.

**********My Coding*************
Public Sub Connect()
            xmpConn = New XmppClientConnection
            xmpConn.Server = "gmail.com"
            'xmpp.ConnectServer = "talk.google.com"
            xmpConn.Username = "myusername@gmail.com"
            xmpConn.Password = "myPassword"
            xmpConn.Status = "Online"
            xmpConn.SocketConnectionType = net.SocketConnectionType.Direct
            xmpConn.Open()
End Sub

Private Sub xmpConn_OnLogin(ByVal sender As Object) Handles xmpConn.OnLogin
        If xmpConn.Authenticated Then
            MsgBox("Connected")
        Else
            MsgBox("Not Connected")
        End If
    End Sub

Do tell me if i am being wrong at any place. It would be nice if someone could share a working app.
Regards
Abishek.R.Srikaanth
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
can you post your Debug XML and catch the Error events of XmppClientConnection?
Are you using .NET 1.0, 1.1 or 2.0?
Software Developer
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS