ClientChannel.OnLoginNeeded not firing for JsonMessage

Using a WinInetHttpClientChannel a BinMessage throws a SessionNotFoundException which in turn triggers the ClientChannel.OnLoginNeeded event. A JsonMessage however, does not throw a SessionNotFoundException or trigger the ClientChannel.OnLoginNeeded event.

set TROJSONMessage.SendExtendedException to true on both sides and retest

That fixed it. Thanks!

1 Like