ILoggable

A place to keep my thoughts on programming

June 1, 2007 .net, mono

ISecurableChannel in TcpChannel not ready on mono

I was just trying to move a remoting service from .NET 2.0 to mono and ran into problems with Interop. The client & server would work fine if running on the same architecture, but fail when crossing architectures. Turns out that the secure portion of TcpChannels isn’t completed yet on mono, throwing an AuthenticationException when a Windows client tried to connect to a Linux server. The culprit is ISecurableChannel. To avoid this, simply, don’t use the security feature for now (i.e. use at own risk, best on a private net).

To get it working replace

ChannelServices.RegisterChannel(chan, true);

with

ChannelServices.RegisterChannel(chan, false);

Leave a comment