Subject: Issue with XMPP Server Connection
Hello Readers,
I want to create Silverlight based chat appliaction using Matrix SDK. I have downloaded matrix for Silverlight and tried to connect with my XMPP server using sample application. I have setup ejabberd XMPP server on my machine and created users on the same. From the silverlight sample I am trying to connect my user using JID.
I have tried both the way using socket as well as using BOSH url but none of the way is working. I also gone through the similar forum post and tried the way they mention but still I am not able to get the application working. Following are the steps I am doing.
1. Downloaded and setup ejabberd XMPP server.
2. Create admin user
3. Set the port no within the Silverlight range instead of defaul 5222 port
3. Run the policy server from the MISC folder.
4. Opened the Silverlight sample and tried following code to connect my XMPP server
XmppClient xmpp = new XmppClient();
xmpp.SetUsername(login.Jid.User);
xmpp.AutoPresence = true;
xmpp.AutoRoster = true;
xmpp.XmppDomain = localhost;
xmpp.Username = login.Jid.User;
xmpp.Password = login.Jid.Password;
xmpp.Port = 4503;
xmpp.Transport = Matrix.Net.Transport.Socket;
xmpp.Status = "online";
xmpp.Open();
5. Configured my application in IIS so that I can run it from localhost.
6. Opened silverlight login screen in browser
7. Provided username and password click on login is not doing anything even it is not showing in debug window also.
Please help me with the exact steps to configure the sample application as I am bit new in XMPP. Also suggest me exact steps for BOSH configuration on Windows XP and .Net
I want to create Silverlight based chat appliaction using Matrix SDK. I have downloaded matrix for Silverlight and tried to connect with my XMPP server using sample application. I have setup ejabberd XMPP server on my machine and created users on the same. From the silverlight sample I am trying to connect my user using JID.
I have tried both the way using socket as well as using BOSH url but none of the way is working. I also gone through the similar forum post and tried the way they mention but still I am not able to get the application working. Following are the steps I am doing.
1. Downloaded and setup ejabberd XMPP server.
2. Create admin user
3. Set the port no within the Silverlight range instead of defaul 5222 port
3. Run the policy server from the MISC folder.
4. Opened the Silverlight sample and tried following code to connect my XMPP server
XmppClient xmpp = new XmppClient();
xmpp.SetUsername(login.Jid.User);
xmpp.AutoPresence = true;
xmpp.AutoRoster = true;
xmpp.XmppDomain = localhost;
xmpp.Username = login.Jid.User;
xmpp.Password = login.Jid.Password;
xmpp.Port = 4503;
xmpp.Transport = Matrix.Net.Transport.Socket;
xmpp.Status = "online";
xmpp.Open();
5. Configured my application in IIS so that I can run it from localhost.
6. Opened silverlight login screen in browser
7. Provided username and password click on login is not doing anything even it is not showing in debug window also.
Please help me with the exact steps to configure the sample application as I am bit new in XMPP. Also suggest me exact steps for BOSH configuration on Windows XP and .Net