Signalr - The ConnectionId is in the incorrect format

时间:2018-08-22 14:00:52

标签: signalr nlb

I'm using signalr in my application to notify user how the proccess is doing. When i test it in localhost, everything works well, but when I deploy the same code in production i get the error bellow:

The ConnectionId is in the incorrect format.

My production enviroment is configurated with NLB (Network Load Balance) of windows server. This can cause the intermittent problem? Are there a solution to resolve it?

Thaks

1 个答案:

答案 0 :(得分:0)

看看您在天平中的设置:

  

通常,在负载平衡环境中运行ASP.NET时,   webfarm,使所有服务器上的机器密钥相同,因此当   客户端在机器之间翻转,他们进行加密和签名工作   始终在您的农场中。   https://github.com/SignalR/SignalR/issues/2292