signalr The connection id is in the incorrect format

后端 未结 1 1937
小鲜肉
小鲜肉 2020-12-21 22:05

I have a project build from mvc4 c# razor engine. I added latest signalr nuget package 1.0.1 My project uses form authentication. each time the client goes from login to lo

相关标签:
1条回答
  • 2020-12-21 22:33

    It seems that you are logging out (modifying your user) while you have an active SignalR connection.

    The reason why this is happening is because on the abort request on the server we check to see if the connectionId is associated with the correct user. Therefore logging out while the connection is still active results in you losing your user association and causing an error.

    To fix this, stop the SignalR connection before logging out.

    0 讨论(0)
提交回复
热议问题