大家在做Remoting的时候有没有出现过这样的现象
int port = 9899;
XX:
try
{
properties["port"] = port;
properties["name"] = "Enterprise";
tcpChannel = new TcpChannel(properties, clientProvider, serverProvider);//tcp通道
//AIShiner.RegistryHelper.RegistryTool.SetServerPort(port);
}
catch(Exception ex)
{
Console.WriteLine(ex.Message);
foreach (IChannel cn in ChannelServices.RegisteredChannels)
{
Console.WriteLine(cn.ChannelName + "||" + cn.ChannelPriority);
}
port++;
goto XX;
}
一直出套接字被占用的异常
重启机器才可以用了