473,414 Members | 1,690 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

ChannelServices: Register multiple channel

Hi,

I'm trying to make ( using Remoting services ), a proxy ( which acts as
a client and a server ). My problem is how can I register a channel on
a particular port for the server part and at the same time register a
channel for client part ?

code :

public void CreateClientAndServer()
{
// Server part
// ============================
HttpChannel c = new HttpChannel(32469);
ChannelServices.RegisterChannel(c, false);

RemotingConfiguration.RegisterWellKnownServiceType (
typeof(ServerClass),
"ServerMsgObj.soap",
WellKnownObjectMode.Singleton);

// Client part
// ============================
HttpChannel c2 = new HttpChannel();
ChannelServices.RegisterChannel(c2, false);

object remoteObj = Activator.GetObject(
typeof(MyOtherServerClass),
"http://localhost:35000/MyOtherServerObj.soap");

MyOtherServerClass obj = (MyOtherServerClass)remoteObj;
obj.DisplayMessage("Hello from the client!");
}

The problem is that I cannot register 2 Http channels !!
Any ideas ?

Thanks.
GizMo.

Aug 4 '06 #1
0 2175

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

Similar topics

3
by: Jeff Shannon | last post by:
I'm having some difficulty getting my logging configuration set correctly. I'm using a config file (copied at end of post), with the intent of setting several loggers which write to a combination...
2
by: Burt Lewis | last post by:
Hi, I have 2 xsl style sheets calling separate rss feeds and I use ASP to display. Problem is that the 1st xsl takes on the style of the 2nd xsl even though they are different formats. I...
9
by: Jackie | last post by:
Hi everyone, Does anyone know when "register" declarations should be used and when "register" must not be used? If possible please give examples for both cases. Thanks
1
by: Nick | last post by:
I have a c# program that holds a several objects. I would like this these objects sent to to several clients using remoting across seperate machines at a certain times that is determined by the...
0
by: BSergio via DotNetMonster.com | last post by:
It must be very simple explanation, but i can't find it, please help! I supposed that prior to publishing object for remoting i have to : 1.create channel. 2.register channel on server....
3
by: Dan | last post by:
Hi, I have a problem using an aspx page with a Control on it. I get the following error message Compiler Error Message: CS1595: 'Test.Class2' is defined in multiple places; using definition...
0
by: Sebastian Loncar | last post by:
Hi, i have two applications, which communicates very extrem together. With the IPC-Channel i receive often the messages like "all instances of the requested pipe are busy". So i want to use...
47
by: Mark | last post by:
why doesn't .NET support multiple inheritance? I think it's so silly! Cheers, Mark
0
by: Bo | last post by:
I've got a XML file like the example below which I would like to import into a mysql database. I would like to import into multiple tables so each Channel Name gets its own table. How would I go...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
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...

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.