Subject: agsXMPP Development
Hi Alex,
I'm new to this development. Company has asked me to develop a Unified Communication Platform using OpenFire server instead of Lync 2013 which I preferred.
I have setup openfire in my machine and the server has started successfully. Everything is set in terms of OpenFire. I've tried to connect to openfire using Spark client and it is successfull.
Now I'm try to connect to openfire using my Windows Application. Following is my code.
When I try to connect to my server I get the following SocketError
No Connection Could be made because the target machine actively refused it.
Can you please help me to come out from this problem as my days are limited to
I'm new to this development. Company has asked me to develop a Unified Communication Platform using OpenFire server instead of Lync 2013 which I preferred.
I have setup openfire in my machine and the server has started successfully. Everything is set in terms of OpenFire. I've tried to connect to openfire using Spark client and it is successfull.
Now I'm try to connect to openfire using my Windows Application. Following is my code.
- public Form1()
- {
- InitializeComponent();
- }
- agsXMPP.XmppClientConnection xcc;
- private void button1_Click(object sender, EventArgs e)
- {
- xcc.Resource = "agsXMPP";
- xcc.Server = "liju-pc";
- xcc.Username = "admin@liju-pc.com";
- xcc.Password = textBox1.Text;
- xcc.Port = 5222;
- xcc.UseSSL = false;
- xcc.UseStartTLS = false;
- xcc.AutoResolveConnectServer = false;
- xcc.UseCompression = false;
- xcc.RegisterAccount = false;
- xcc.SocketConnectionType = SocketConnectionType.Bosh;
- xcc.OnLogin += xcc_OnLogin;
- xcc.OnSocketError += xcc_OnSocketError;
- xcc.OnXmppConnectionStateChanged += xcc_OnXmppConnectionStateChanged;
- xcc.OnError += xcc_OnError;
- xcc.Open();
- }
- void xcc_OnError(object sender, Exception ex)
- {
- }
- void xcc_OnSocketError(object sender, Exception ex)
- {
- MessageBox.Show(ex.Message);
- }
- void xcc_OnXmppError(object sender, agsXMPP.Xml.Dom.Element e)
- {
- }
- void xcc_OnXmppConnectionStateChanged(object sender, agsXMPP.XmppConnectionState state)
- {
- label1.Text = state.ToString();
- }
- void xcc_OnLogin(object sender)
- {
- }
When I try to connect to my server I get the following SocketError
No Connection Could be made because the target machine actively refused it.
Can you please help me to come out from this problem as my days are limited to