Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mikees #1
Member since May 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: SilverlightClient with my openfire server
Hello,

I want to develop a IM web application and I would like to use Matrix sdk.

I 'm trying to run sample SilverlightClient but I can't connect to my openfire Server.

            _xmppClient.Username = login.Jid.User;
            _xmppClient.Password = login.Password;
           
            _xmppClient.XmppDomain = login.Jid.Server;
           
            _xmppClient.Port = 4502;

            if (!String.IsNullOrEmpty(login.Hostname))
                _xmppClient.Hostname = login.Hostname;
           
            _xmppClient.AutoPresence = false;
            _xmppClient.Priority = login.Priority;
           
            _xmppClient.Port = 5222;
       
            // status and show for Autopresence after login
            _xmppClient.Status  = "online";
            _xmppClient.Show    = Matrix.Xmpp.Show.NONE;

            _xmppClient.Open();

Also, When I add a contact , I have an socketException error :

System.Net.Sockets.SocketException: [net_winsock_10057]
Arguments :
Les chaînes de ressource de débogage ne sont pas disponibles. Souvent la clé et les arguments fournissent suffisamment d'informations pour diagnostiquer le problème. Consultez http://go.microsoft.com/fwlink/?linkid=106663&Version=2.0.40115.0&File=System.Net.dll&Key=net_winsock_10057
   à Matrix.Net.ClientSocket.Send(Byte[] data)
   à Matrix.XmppStream.SendData(String xml)
   à Matrix.XmppStream.Send(XmppXElement el)
   à Matrix.Xmpp.Roster.RosterManager.Send(XmppXElement el)
   à Matrix.Xmpp.Roster.RosterManager.AddRosterItem(Jid jid, String nickname, String[] group)
   à Matrix.Xmpp.Roster.RosterManager.AddRosterItem(Jid jid, String nickname)
   à SilverLightClient.AddContact.cmdAdd_Click(Object sender, RoutedEventArgs e)
   à System.Windows.Controls.Primitives.ButtonBase.OnClick()
   à System.Windows.Controls.Button.OnClick()
   à System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   à System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
   à MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)}

Thanks
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
  • Do you have a policy server running?
  • did you configure your openfire server to port 4502?

Alex
Avatar
mikees #3
Member since May 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
hello,

No, I don't have a policy server.

How I can configure openFire on the port 4502 ? I have to configure "Server-to-Server Port " ?

Thanks
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
a policy server is included with the matrix download. please look also in the readme about silverlight port redtrictions.
Avatar
mikees #5
Member since May 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
it's ok with policy server !

thanks you
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: MatriX RSS