Error connecting to XMPP server through C#.

132 views
Skip to first unread message

yogesh Kumar

unread,
Sep 11, 2014, 1:19:11 AM9/11/14
to jabbe...@googlegroups.com

I am trying to connect my C# application to Finesse XMPP server but keep getting error.


I am using jabber-net library to connect. Following is the snippet from the pidgin which is working fine for me:



The code to connect to same server through c#:


                jabberClient2.Password = "MyPass";

                jabberClient2.User = "9001";

                jabberClient2.AutoRoster = true;

                jabberClient2.Server = "Some_IP";

                jabberClient2.NetworkHost = null;

                jabberClient2.Port = 5222;

                jabberClient2.PlaintextAuth = true;

                jabberClient2.Resource = "pidgin2";

                jabberClient2.AutoLogin = true;

                jabberClient2.AutoPresence = false;

                jabberClient2.AutoStartTLS = true;

                jabberClient2.Connect();


I am getting the following error:

{jabber.connection.sasl.AuthenticationFailedException: Error binding resource: <error type="modify" code="400"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" /></error>}


Also attached the CS file for the program.

Form1.cs
Reply all
Reply to author
Forward
0 new messages