Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
talk acount
Avatar
CameronKloot #1
Member since Mar 2008 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: fail to login
Hi, I've tried the following code:

        XmppClientConnection xmpp = new XmppClientConnection();
        public Form1()
        {
            InitializeComponent();
            xmpp.Server = "gmail.com";
            xmpp.Username = "anakinpiewalker@gmail.com";
            xmpp.Password = "password;
            xmpp.AutoResolveConnectServer = true;
            xmpp.OnLogin += new ObjectHandler(xmpp_OnLogin);
            xmpp.Open();
           
           
        }

        void xmpp_OnLogin(object sender)
        {
            MessageBox.Show("ASDF");
        }

but it doesn't work.  I don't know why.  Any help?
Thanks
Avatar
Alex #2
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
you username is wrong.

Your Jid is:
anakinpiewalker@gmail.com

A Jid has the format username@server/resource, so your username is anakinpiewalker.

Alex
Alexander Gnauck
AG-Software
Avatar
CameronKloot #3
Member since Mar 2008 · 19 posts
Group memberships: Members
Show profile · Link to this post
heh, so easy thanks
;)
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 SDK Support RSS