By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,172 Members | 1,751 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,172 IT Pros & Developers. It's quick & easy.

Problem with TCP Channel already registred .net remoting (.net 1.0, IIS)

P: n/a
Hi,

At the moment I am trying to develop an application that uses another app
over .net remoting and having some problems with it (ok, that is ofcourse
why I am here), hope somebody can shine a light on the following:

I have been given a sample winforms app, which works without problem, I can
connect, send queries and become response from the other application.

When I try to implement this in webforms, this unfortunately does not work.

What I do in my index.aspx.cs is this:

private void Page_Load(object sender, System.EventArgs e)
{
RemotingConfiguration.Configure(Server.MapPath("We b.config"));
connection = new Connection();
}

Where Connection() is a part of included references, which are especially
made to connect to the server application

In my web.config I added following configuration:

<system.runtime.remoting>

<application>

<lifetime leaseTime="24H" sponsorshipTimeout="30S" renewOnCallTime="60H"
leaseManagerPollTime="1H" />
<client url="tcp://xxx.xxx.xxx.xxx:1234" displayName="some.Session">
<activated type="some.name.Connection, some.Core" />
<activated type="some.name.Connection, some.Index" />
</client>
<client url="tcp://xxx.xxx.xxx.xxx:1234/someWorkflowServer">
<activated type="some.name.Connection, some.Workflow"/>
</client>
<channels>
<channel ref="tcp client" />
</channels>
</application>
</system.runtime.remoting>

When I try to make the connection my local installed webserver gives me
following error time after time:

-------------------------------------

Remoting configuration failed with the exception
System.Runtime.Remoting.RemotingException: The channel tcp is already
registered. at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannelInternal(ICh
annel chnl) at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannel(IChannel
chnl) at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureChannels(RemotingXmlC
onfigFileData configData) at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlC
onfigFileData configData).
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: 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.R egisterChannelInternal(ICh
annel chnl) at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannel(IChannel
chnl) atv
System.Runtime.Remoting.RemotingConfigHandler.Conf igureChannels(RemotingXmlC
onfigFileData configData) at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlC
onfigFileData configData).

Source Error:

Line 47:
Line 48:
RemotingConfiguration.Configure(Server.MapPath("We b.config"));
Line 49: connection = new Connection();
Line 50: }

Source File: d:\www\index.aspx.cs Line: 48

Stack Trace:

[RemotingException: Remoting configuration failed with the exception
System.Runtime.Remoting.RemotingException: The channel tcp is already
registered.
at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannelInternal(ICh
annel chnl)
at
System.Runtime.Remoting.Channels.ChannelServices.R egisterChannel(IChannel
chnl)
at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureChannels(RemotingXmlC
onfigFileData configData)
at
System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlC
onfigFileData configData).]

System.Runtime.Remoting.RemotingConfigHandler.Conf igureRemoting(RemotingXmlC
onfigFileData configData) +401
System.Runtime.Remoting.RemotingConfiguration.Conf igure(String filename)
+30
test.WebForm1.Page_Load(Object sender, EventArgs e) in
d:\www\index.aspx.cs:48
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

----------------------------------------------------------------------------
----

Version Information: Microsoft .NET Framework Version:1.0.3705.0; ASP.NET
Version:1.0.3705.0

-------------------------------------

Does anybody have experience with this?
Thanks a lot in advance!

Cheers, Gruesse from Nuernberg, Germany

Martijn

Nov 18 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.