G
Gomez
I have 2 independent problems with remoting-
1. If I use remoting from the client side and it fails, though the code runs
inside a try/catch block(code follows the questions), it never arrives to
the catch block but rather invokes a system exception (of type
System.Net.WebExeception)with the following message-
Unable to connect to the remote server
try
{
obj2.General_Remote_Method("serve_new_client",
client_ip_address, client_port, out out_paramter);
}
catch (IOException ioExcep)
{
Console.WriteLine("Remote IO Error" +
"\nException:\n" + ioExcep.ToString());
}
How can I modify the code in order to pass through the catch block?
2. A second problem that I have is, trying to run the server code and the
client on the same application I get the message
the channel 'http' is already registered
Running on different instances of the application works fine.
Can someone help me with any of these problems?
Regards
Gomez
1. If I use remoting from the client side and it fails, though the code runs
inside a try/catch block(code follows the questions), it never arrives to
the catch block but rather invokes a system exception (of type
System.Net.WebExeception)with the following message-
Unable to connect to the remote server
try
{
obj2.General_Remote_Method("serve_new_client",
client_ip_address, client_port, out out_paramter);
}
catch (IOException ioExcep)
{
Console.WriteLine("Remote IO Error" +
"\nException:\n" + ioExcep.ToString());
}
How can I modify the code in order to pass through the catch block?
2. A second problem that I have is, trying to run the server code and the
client on the same application I get the message
the channel 'http' is already registered
Running on different instances of the application works fine.
Can someone help me with any of these problems?
Regards
Gomez