Hi, I just started with AddIn development and have a small problem. The following code is working nice inside a console application:
Trace.WriteLine("Started");
var channel = new TcpChannel(8083);
ChannelServices.RegisterChannel(channel, false);
RemotingConfiguration.RegisterWellKnownServiceType(typeof(RemoteObject), "HelloWorld",
WellKnownObjectMode.Singleton);
But I I try it in the AddIn class, it does not work. When used inside the Connect() it throws a "double port occupied" exception (perhaps the plugin was running in two instances of VS) so I tried moving it into a user called function (the one in the toolbox menue).
But still, for some reason I can't connect. Console App works fine with exactly the same code. Are AddIns running in a sandbox and a prohbited to "start servers"?
Chis