Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Problem with TCP Channel already registred .net remoting (.net 1.0, IIS)

Reply
Thread Tools

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

 
 
Martijn Damen
Guest
Posts: n/a
 
      06-16-2004
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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Dual channel or triple channel? VanguardLH Computer Support 1 06-06-2010 01:36 AM
Six channel or two channel sound on DVD? cydeweys@gmail.com DVD Video 1 10-10-2005 04:51 AM
.net remoting and tcp listener socket Danish Ahmed ASP .Net 2 04-21-2005 11:02 AM
Remoting.Channels.Tcp Bill Bush ASP .Net Web Services 0 05-15-2004 01:56 AM
Have two ATA100 Seagate drives in a vp6, one IDE channel comes up as mode 5 in winxp but the other channel is stuck in mode 4 Tim Computer Support 3 02-23-2004 03:35 AM



Advertisments