You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can connect to a wss just fine running in windows, but am getting the following exception only on mono:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Sockets.SocketException: An address incompatible with the requested protocol was used
at System.Net.Sockets.Socket..ctor (System.Net.Sockets.AddressFamily addressFamily, System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType) [0x0005d] in <bd46d4d4f7964dfa9beea098499ab597>:0
at System.Net.Sockets.Socket.ConnectAsync (System.Net.Sockets.SocketType socketType, System.Net.Sockets.ProtocolType protocolType, System.Net.Sockets.SocketAsyncEventArgs e) [0x0000b] in <bd46d4d4f7964dfa9beea098499ab597>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in <8f2c484307284b51944a1a13a14c0266>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00053] in <8f2c484307284b51944a1a13a14c0266>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
at SuperSocket.ClientEngine.ConnectAsyncExtension.ConnectAsync (System.Net.EndPoint remoteEndPoint, SuperSocket.ClientEngine.ConnectedCallback callback, System.Object state) [0x00039] in <4ba236fbf29248a4985a92e6e3907e4a>:0
at SuperSocket.ClientEngine.TcpClientSession.Connect () [0x00074] in <4ba236fbf29248a4985a92e6e3907e4a>:0
at WebSocket4Net.WebSocket.Open () [0x0003a] in <4ba236fbf29248a4985a92e6e3907e4a>:0
I am calling the constructor with one parameter. Have tried latest stable 0.14.1 and also latest beta 0.15 beta6 and get same issue on both. Am running mono 4.6.2 on ubuntu.
The text was updated successfully, but these errors were encountered:
Hello, I had the same problem on mono 4.6.2 on Ubuntu 16.04.
I've reverted (temporarily) to mono 4.2.1 and it works fine, the exception is never thrown.
It seems like a Mono issue then, although I don't know if a workaround could be found.
@alexandrecavaco How did you revert to 4.2.1? I'm trying to get this working on raspberry pi but can't work out the process to downgrade mono (I'm a Windows guy).
Hi @BryanCrotaz. I did that some months ago (I was at another company then), and presently I'm not working with Mono, but I know it involved pinning or holding apt packages on Ubuntu (you can learn what pinning is here.
You can try to follow this stackoverflow answer here, but you probably need to ajust it for Raspberry.
I can connect to a wss just fine running in windows, but am getting the following exception only on mono:
I am calling the constructor with one parameter. Have tried latest stable 0.14.1 and also latest beta 0.15 beta6 and get same issue on both. Am running mono 4.6.2 on ubuntu.
The text was updated successfully, but these errors were encountered: