pgstath / Sharp.Xmpp

Sharp.Xmpp is looking for a maintainer! Unfortunatelly I do not have currently the time needed to maintain the library. Luckily a small but vibrant community has evolved around Sharp.Xmpp. If you would like to be the project's maintainer please sent an email to pgstath@gmail.com. This should include issues, tickets and commits that you have done for Sharp.Xmpp or other similar project. Sharp.Xmpp is a multiplatform, Windows and Android, .NET XMPP client assembly.Sharp.Xmpp supports IM functionality & a variety of XMPP extensions, is simple and is extensively tested against Android Xamarin. It is a fork of the currently frozen excellent S22.Xmpp project. Sharp.Xmpp will be at the FOSSDEM 2016 Real time DevRoom!
Other
84 stars 51 forks source link

XML Stream Issue #8

Closed DavePilks closed 8 years ago

DavePilks commented 8 years ago

Hi

I am trying to use the branch where we can define the host address in teh constructor for the XMPPClient (dev-rafaneri).

I can create the client but I get the following error when I try to call the Connect() method.

"The XML stream could not be negotiated."

When I drill down, I get to the folllwoing inner exception

{"'', hexadecimal value 0x15, is an invalid character. Line 1, position 1."}

I am assuming that when Sharp.XMPP tries to deserialise the stream, it is expecting a different encoding.

Do you have any idea why this is occuring and/or how to fix it?

I can connect to the server via the Matrix SDK.

pgstath commented 8 years ago

Hi, I have not encountered something like this, but it might be possible, or it might be related to the process of negotiating the encryption. What kind of server do you use? It would be extremely helpful if you had access to the server's log and post the relevant XML stanza. You are going to need this in order to do some more advanced debugging. Also from what point in code is the exception raised?

chintanrn commented 7 years ago

Hi DavePilks,

Kindly let me know if you found the solution. I am facing same problem.

Thanks and Regards, CNaik.

elveejay1 commented 2 years ago

I also have this problem - is there a solution?

I connect to a Cisco Finesse UCCX (v12.0). If you want to try it out, they have a super cool lab environment (and it is free to use)