Context.Request.GetHttpContext().Request.UserHostName throws ArgumentException in SignalR OnDisconnected handler

141 Views Asked by At

Calling Context.Request.GetHttpContext().Request.UserHostName inside my SignalR hub's OnDisconnected handler throws an ArgumentException with the message: "Value does not fall within the expected range." Why is that?

0

There are 0 best solutions below