Groups | Blog | Home
all groups > dotnet remoting > august 2006 >

dotnet remoting : SocketException



Isabel_ve
8/16/2006 1:59:01 AM
Hi,

I have a console application which creates the TcpServerChannel, and which
will create the RemoteObject.

My Client-application is trying to connect to the server-application and
getting the remoteObject. When my service is not running, it throws a
SocketException. What is totaly normal.

Is it possible to check if the client could make a connection with the
server-app, this whithout getting any SocketExceptions?

At this moment, I'm using 'Try-Catch', but even then, (when I'm in
debug-mode), it will break into debugger. And it's not an option to disable
the 'break into debugger'-setting for this.

I looked on the internet, but in each sample I find, they used a Try-Catch
block. I also looked to the TcpChannel-class,... but nothing that seems to
be usefull for what I want.

So, does someone know if there is a nice way to check if the client could
connect or not?


TIA,

Isabel
Phill W.
8/16/2006 4:03:08 PM
[quoted text, click to view]

No.

[quoted text, click to view]

Check your settings in the IDE under Debug > Exceptions.
This is probably forcing the "first chance" Exception raised by this
failure to break into the Debugger, which you probably don't want.

Try .. Catch /is/ the right way to go with this.

HTH,
AddThis Social Bookmark Button