pusher / pusher-websocket-dotnet

Pusher Channels Client Library for .NET
MIT License
111 stars 113 forks source link

A call to SSPI could not be made; see inner exception (.NET Framework 4.5 and 4.7.2) #113

Closed rsimonru closed 3 years ago

rsimonru commented 3 years ago

Hello.

I'm getting the error "A call to SSPI could not be made; see inner exception" in ConnectAsync() in a C# project with .NET Framework 4.5 & 4.7.2. When use .NET Core 3.1, the application work perfect.

What could be wrong?

benw-pusher commented 3 years ago

Could you share the full exception (including the mentioned inner exception)?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.

OlegRa commented 2 years ago

The WebSocket4Net package has known problems with secure socket connections (see this and this issue) that prevent connecting to Pusher servers from .NET Framework applications. As a workaround, I've personally switched from the .NET Framework versions of this library to the .NET Standard version. it works fine but as a long-term solution, the new version of WebSocket4Net or another web socket library should be considered.