乐意与人交流学习。 ContractDescription contract = ContractDescription.GetContract(typeof(IMyServer)); EndpointAddress address = new EndpointAddress("net.tcp://localhost:8880/myserver"); NetTcpBinding binding = new NetTcpBinding(); binding.MaxReceivedMessageSize = 1024 * 1024 * 30; binding.ReceiveTimeout = TimeSpan.FromMinutes(5);