Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant