I don't know if attribute of name can be added to channel node to uniquely
identify channel in the config file. Chances are there is a way otherwise
"ThunderMusic" wrote:
> hi,
> could you give more detail on this please? because I have the same problem
> and don't know how to solve it.
> What should I put in my <channel> line?
>
> mine is : <channel ref="tcp" port="8000"> </channel>
>
> thanks
>
> ThunderMusic
>
> "Marc" <Marc@discussions.microsoft.com> wrote in message
> news:BA3FB801-062D-4D0E-8530-B8BEAB869B1B@microsoft.com...
> > Robert,
> >
> > The channel "tcp" is already registered. By not specifically naming tcp
> > channels to unique names you are running into the error. Tcp channel has
> > default name of "tcp". The return error has the user thinking a second
> > Tcp
> > channel can not be registered.
> >
> > See link for full explanation:
> >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconchannels.asp
> >
> > - Marc
> >
> >
> > "Robert Reineri" wrote:
> >
> >> We have a service where we configure remoting via the configuration file.
> >> My
> >> problem is this. This service has, until now, only provided services to
> >> client applications. Now, the service is going to be a client itself (it
> >> needs to remote to yet another service). I am trying to define two tcp
> >> channels:
> >>
> >> <channels>
> >> <!-- External clients use tcp on port 7777 -->
> >> <channel ref="tcp" port="7777" >
> >> <serverProviders>
> >> <formatter ref="binary" typeFilterLevel="Full" />
> >> </serverProviders>
> >> </channel>
> >>
> >> <!-- Internal clients use http on port 7778 -->
> >> <channel ref="http" port="7778" >
> >> <serverProviders>
> >> <formatter ref="binary" typeFilterLevel="Full" />
> >> </serverProviders>
> >> </channel>
> >>
> >> <!-- Support added for Centralized Cache -->
> >> <channel ref="tcp" port="9998">
> >> <serverProviders>
> >> <formatter ref="binary" typeFilterLevel="Full" />
> >> </serverProviders>
> >> </channel>
> >> </channels>
> >>
> >> When I do this in the config file, and try to start the service, it
> >> complains that the TCP channel is defined twice. It seems to me that
> >> since
> >> they are using separate ports, why should this make any difference? This
> >> third channel will be used for the service to connect to yet another
> >> service, but this time as a client.
> >>
> >> I think perhaps I am missing the whole point of these channels, and just
> >> don't have a good grasp of the whole process as remoting is new to me
> >> (this
> >> is a legacy app I am working on).
> >>
> >> Here is the exact error message I get:
> >> System.Runtime.Remoting.RemotingException: Remoting configuration failed
> >> with the exception System.Runtime.Remoting.RemotingException: The channel
> >> tcp is already registered.
> >>
> >> at
> >> System.Runtime.Remoting.Channels.ChannelServices.RegisterChannelInternal(IChannel
> >> chnl)
> >>
> >> at
> >> System.Runtime.Remoting.Channels.ChannelServices.RegisterChannel(IChannel
> >> chnl)
> >>
> >> at
> >> System.Runtime.Remoting.RemotingConfigHandler.ConfigureChannels(RemotingXmlConfigFileData
> >> configData)
> >>
> >> at
> >> System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
> >> configData).
> >>
> >> at
> >> System.Runtime.Remoting.RemotingConfigHandler.ConfigureRemoting(RemotingXmlConfigFileData
> >> configData)
> >>
> >> at System.Runtime.Remoting.RemotingConfiguration.Configure(String
> >> filename)
> >>
> >> any help would be greatly appreciated. Please reply via newsgroup.
> >>
> >> Thank you very much for any assistance.
> >>
> >> Robert Reineri
> >> First National Bank of Marin
> >>
> >>
> >>
>
>