本文介绍了通道“TCP”已注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想给定的应用程序(Windows服务)作为一个远程服务器以及远程访问客户端。在生产中,我将运行我的应用程序监视对方在.NET远程处理,并相应地报告失败的两个实例。

I want the given application (Windows Service) to act as a remoting server as well as remoting client. In production I will run the two instances of my application monitoring each other over .NET Remoting and will report the failures accordingly.

我写了一个基础件,并获得通道TCP已注册exception..I希望以编程方式设置的通道配置。

I have written a basic pieces, and getting "The channel 'tcp' is already registered" exception..I want to set the channel configuration programmatically.

推荐答案

有一个通道特定端口号只能由一个应用程序实例被创建。您需要使用不同的端口号和通道名称为每个实例。

A channel with a specific port number can only be created by one application instance. You need to use different port numbers and channel names for each instance.

这需要使用单独的通道模板(如果你使用模板?)。

This requires using seperate channel templates (if you are using templates?).

这篇关于通道“TCP”已注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-09 08:32