Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
alexypa #1
Member since Mar 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: SocketException was unhandled by user code
Hello Alex,

I downloaded the MatriX SDK and ran the sample to get an idea as to what is involved. I also run an Openfire Jabber server and your sample policy server. First question I have is whether I need a license key to run the SDK? If so, is there a trial key I can get? As soon as I try to add a user to the roster I get the socket exception below. Any ideas?

Alex Parnes
Cooper Industries


System.Net.Sockets.SocketException was unhandled by user code
  Message="[net_winsock_10057]\r\nArguments:\r\nDebugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=…"
  ErrorCode=10057
  StackTrace:
       at Matrix.Net.ClientSocket.Send(Byte[] data)
       at Matrix.XmppStream.SendData(String xml)
       at Matrix.XmppStream.Send(XmppXElement el)
       at Matrix.Xmpp.Roster.RosterManager.Send(XmppXElement el)
       at Matrix.Xmpp.Roster.RosterManager.AddRosterItem(Jid jid, String nickname, String[] group)
       at Matrix.Xmpp.Roster.RosterManager.AddRosterItem(Jid jid, String nickname)
       at SilverLightClient.AddContact.cmdAdd_Click(Object sender, RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e)
       at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, String eventName)
  InnerException:
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry did not read your question carefully enough.
When do you get the exception? When the dialog loads, or after pressing the Add button?

can you post the debug xml?

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

The exception happened after I pressed the Add button. I have since solved this issue and it was related to the port on my Openfire server not allowing traffic on port 4503.

Alex
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