Click here to Skip to main content
15,896,063 members
Home / Discussions / C#
   

C#

 
GeneralBasic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 9:27
Soumya Mulukutla9-Feb-05 9:27 
GeneralRe: Basic Deployment Doubt Pin
S. Senthil Kumar9-Feb-05 9:30
S. Senthil Kumar9-Feb-05 9:30 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:04
Soumya Mulukutla9-Feb-05 10:04 
GeneralRe: Basic Deployment Doubt Pin
Judah Gabriel Himango9-Feb-05 10:14
sponsorJudah Gabriel Himango9-Feb-05 10:14 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:32
Soumya Mulukutla9-Feb-05 10:32 
GeneralRe: Basic Deployment Doubt Pin
Soumya Mulukutla9-Feb-05 10:35
Soumya Mulukutla9-Feb-05 10:35 
GeneralRe: Basic Deployment Doubt Pin
Judah Gabriel Himango9-Feb-05 11:01
sponsorJudah Gabriel Himango9-Feb-05 11:01 
GeneralC# - Channel already registered Pin
deceptionuk9-Feb-05 9:15
deceptionuk9-Feb-05 9:15 
I'm getting the "Tcp Channel already registered" on an application I'm working on that acts as both a server and a client to be a simple chat client. Hope someone can tell me what the issue with my code is, here's the relevant bits:

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


//Server

TcpChannel channel = new TcpChannel(8002);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.RegisterWellKnownServiceType(
typeof(Hello), "Hi", WellKnownObjectMode.SingleCall);

//Rest of code here
// Client (on button click)

string ipaddr = textBox2.Text;
string port = textBox3.Text;

TcpChannel chan = new TcpChannel(8001);
ChannelServices.RegisterChannel(chan);
Hello obj = (Hello)Activator.GetObject(
typeof(Hello), "tcp://" + ipaddr + ":" + port + "/Hi");



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

Thanks in advance,
Matt

GeneralRe: C# - Channel already registered Pin
S. Senthil Kumar9-Feb-05 9:27
S. Senthil Kumar9-Feb-05 9:27 
GeneralRe: C# - Channel already registered Pin
deceptionuk9-Feb-05 9:36
deceptionuk9-Feb-05 9:36 
GeneralRe: C# - Channel already registered Pin
Judah Gabriel Himango9-Feb-05 10:16
sponsorJudah Gabriel Himango9-Feb-05 10:16 
GeneralRe: C# - Channel already registered Pin
deceptionuk9-Feb-05 10:26
deceptionuk9-Feb-05 10:26 
GeneralRe: C# - Channel already registered Pin
Judah Gabriel Himango9-Feb-05 10:57
sponsorJudah Gabriel Himango9-Feb-05 10:57 
GeneralRe: C# - Channel already registered Pin
Scott Serl9-Feb-05 12:22
Scott Serl9-Feb-05 12:22 
Generalstrings Pin
John L. DeVito9-Feb-05 9:01
professionalJohn L. DeVito9-Feb-05 9:01 
GeneralRe: strings Pin
chunyu.net9-Feb-05 9:07
chunyu.net9-Feb-05 9:07 
GeneralRe: strings Pin
S. Senthil Kumar9-Feb-05 9:10
S. Senthil Kumar9-Feb-05 9:10 
GeneralRe: strings Pin
Christian Graus9-Feb-05 9:33
protectorChristian Graus9-Feb-05 9:33 
GeneralRe: strings Pin
Jon Sagara9-Feb-05 10:41
Jon Sagara9-Feb-05 10:41 
GeneralRe: strings Pin
John L. DeVito9-Feb-05 10:47
professionalJohn L. DeVito9-Feb-05 10:47 
GeneralRe: strings Pin
MoustafaS9-Feb-05 12:18
MoustafaS9-Feb-05 12:18 
GeneralRe: strings Pin
Dave Kreskowiak9-Feb-05 17:04
mveDave Kreskowiak9-Feb-05 17:04 
GeneralSystem.Diagnostics.Process memory issue Pin
chunyu.net9-Feb-05 7:11
chunyu.net9-Feb-05 7:11 
GeneralRe: System.Diagnostics.Process memory issue Pin
S. Senthil Kumar9-Feb-05 8:41
S. Senthil Kumar9-Feb-05 8:41 
GeneralRe: System.Diagnostics.Process memory issue Pin
chunyu.net9-Feb-05 9:06
chunyu.net9-Feb-05 9:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.