Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Error to connect #14

Open
cguanes opened this issue Oct 25, 2019 · 0 comments
Open

Error to connect #14

cguanes opened this issue Oct 25, 2019 · 0 comments

Comments

@cguanes
Copy link

cguanes commented Oct 25, 2019

Using the simple example from the documentation

        using (XmppClient client = new XmppClient(hostname, username, password,5222,true))
        {
            // Setup any event handlers.
            // ...
            try { 
            client.Connect();
            }
             catch (Exception ex)
            {
                Debug.WriteLine(  ex.ToString());
            }

}

I'm getting the following error:
Exception thrown: 'System.Globalization.CultureNotFoundException' in mscorlib.dll
System.Globalization.CultureNotFoundException: Culture is not supported.
Parameter name: name
en-US.UTF-8 is an invalid culture identifier.
at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
at System.Globalization.CultureInfo..ctor(String name)
at S22.Xmpp.Core.StreamParser.ReadRootElement()
at S22.Xmpp.Core.StreamParser..ctor(Stream stream, Boolean leaveOpen)
at S22.Xmpp.Core.XmppCore.InitiateStream(String hostname)
at S22.Xmpp.Core.XmppCore.SetupConnection(String resource)
at S22.Xmpp.Core.XmppCore.Connect(String resource)
at S22.Xmpp.Im.XmppIm.Connect(String resource)
at S22.Xmpp.Client.XmppClient.Connect(String resource)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant