473,890 Members | 1,330 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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(objec t sender, System.EventArg s e)
{
RemotingConfigu ration.Configur e(Server.MapPat h("Web.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" sponsorshipTime out="30S" renewOnCallTime ="60H"
leaseManagerPol lTime="1H" />
<client url="tcp://xxx.xxx.xxx.xxx :1234" displayName="so me.Session">
<activated type="some.name .Connection, some.Core" />
<activated type="some.name .Connection, some.Index" />
</client>
<client url="tcp://xxx.xxx.xxx.xxx :1234/someWorkflowSer ver">
<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.Remoti ngException: The channel tcp is already
registered. at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnelInternal(IC h
annel chnl) at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnel(IChannel
chnl) at
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureChann els(RemotingXml C
onfigFileData configData) at
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureRemot ing(RemotingXml C
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.Remoti ngException: Remoting
configuration failed with the exception
System.Runtime. Remoting.Remoti ngException: The channel tcp is already
registered. at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnelInternal(IC h
annel chnl) at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnel(IChannel
chnl) atv
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureChann els(RemotingXml C
onfigFileData configData) at
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureRemot ing(RemotingXml C
onfigFileData configData).

Source Error:

Line 47:
Line 48:
RemotingConfigu ration.Configur e(Server.MapPat h("Web.config") );
Line 49: connection = new Connection();
Line 50: }

Source File: d:\www\index.as px.cs Line: 48

Stack Trace:

[RemotingExcepti on: Remoting configuration failed with the exception
System.Runtime. Remoting.Remoti ngException: The channel tcp is already
registered.
at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnelInternal(IC h
annel chnl)
at
System.Runtime. Remoting.Channe ls.ChannelServi ces.RegisterCha nnel(IChannel
chnl)
at
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureChann els(RemotingXml C
onfigFileData configData)
at
System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureRemot ing(RemotingXml C
onfigFileData configData).]

System.Runtime. Remoting.Remoti ngConfigHandler .ConfigureRemot ing(RemotingXml C
onfigFileData configData) +401
System.Runtime. Remoting.Remoti ngConfiguration .Configure(Stri ng filename)
+30
test.WebForm1.P age_Load(Object sender, EventArgs e) in
d:\www\index.as px.cs:48
System.Web.UI.C ontrol.OnLoad(E ventArgs e)
System.Web.UI.C ontrol.LoadRecu rsive()
System.Web.UI.P age.ProcessRequ estMain()

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

Version Information: Microsoft .NET Framework Version:1.0.370 5.0; ASP.NET
Version:1.0.370 5.0

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

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

Cheers, Gruesse from Nuernberg, Germany

Martijn

Nov 18 '05 #1
0 2487

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
445
by: d | last post by:
Hey all, I've been having a weird problem using com objects in IIS 4. I've built a middleware system that can be called with XML requests over HTTP. The request is sent to an ASP page which creates a com object that handles the request. This com object usually calls other asp pages that handle sub functions. This has worked fine, but now I have a new component that is giving me a lot of problems. It's a component that contains a few...
0
1297
by: Linesh Gajera | last post by:
Hi, I have unique problem. I have configured RemotingServer running as Console Application and my Remoting object access Oracle database. My remoting object make call to Oracle database and returns result if i run RemotingServer as Console Application. Then i configured RemotingServer as Windows Service. My Windows Service starts fine, it also configured Remoting Channels as well. Now problem is remoting object makes call to oracle...
1
2050
by: Nick | last post by:
I am working on a VB.NET application that uses remoting hosted inside on IIS. I chose the binary formatter for this application because the only clients that will be connecting to it are .NET based, as well as the fact that is fast. My SQL database holds a table of users, passwords, and roles. With an ASP.net application I can easily do a User.IsInRole("somerole") because of forms authentication and keeping the roles info in an encrypted...
0
916
by: nic | last post by:
Hello, I wrote a client, a servercomponent and a component that hosts the servercomponent. Everything works fine. Now, I will host the servercomponent via IIS. So, I changed a few things in the clientapp but not in the servercomponent + I did the steps for the IIS. (I only brought the servercomponent.dll to the bin- directory)
0
1100
by: nic | last post by:
Hello, I have a problem with remoting and also with building an interface. My ComponentServer is hosted via an IIS. I wrote my first interface to use it in the client. And the testfunct works nice. I don't understand very well the Activator.Getobject in theClient.
0
1708
by: jan v | last post by:
Hi everyone I have a problem with events. When the code reaches communication.SynchronisationServer.UpdateNotificationEvent+=new Agilis.RAB.Server.BusinessLogic.SynchronisationDelegate(SynchronisationServer_UpdateNotificationEvent); communication.SynchronisationServer.UpdatedDataSenderEvent+=new Agilis.RAB.Server.BusinessLogic.SynchronisationDataSendingDelegate(SynchronisationServer_UpdatedDataSenderEvent); than it fires the...
0
1135
by: Derfel | last post by:
Hi you all I need some help with .NET remote I'm using remote service wiht TCP channel To do it, i register a client channel and a server channel like this //Client channel ChannelClient=new TcpChannel() ChannelServices.RegisterChannel(ChannelClient) //Server channel ChannelServer=new TcpChannel(11050) ChannelServices.RegisterChannel(ChannelServer)
0
972
by: jwgerula | last post by:
Hello all, I hope this is the correct group for this problem. We are developing a Web Service that will employ a third-party transport solution and we are now writing a set of stress tests to test this transport layer. As part of our analysis we need to know how many channels are being explicitly created (or rather exist concurrently) during our server's execution. The protocol we are testing will (ideally) open http channels and...
0
872
by: Joe Van Meer | last post by:
HI all, I have a remotable class in a dll on server with an app.config file that I use to set my remoting settings. I call this from a simple client app. Both use configuration files. The dll on server uses a web.config, and my client uses an app.config file. I thought it was all working until I physically moved the remotable class to a new server.
0
10819
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10923
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8016
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7169
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5851
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4676
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4271
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3277
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.