How can a client try to reconnect to a server after a first failed try with WCF?
Posted
by djerry
on Stack Overflow
See other posts from Stack Overflow
or by djerry
Published on 2010-05-20T15:19:13Z
Indexed on
2010/05/20
15:30 UTC
Read the original article
Hit count: 259
Hey guys,
I'm using a client - server app. When a client starts, he gets a login-screen. When the server is not up yet, the call to the server will throw an exception which i catch (EndpointNotFoundException). I show a messagebox telling the user the server is offline. When he tries to reconnect again, it will throw another exception (CommunicationObjectFaultedException), even though the server is online. When a new client starts then, he can connect to the server. But the client who attempted before, still gets the error.
My question now is how can the first client login after a failed first try without having to start his program again. So i want to clear the communicationchannel of its faulted state or something like that.
Thanks in advance.
© Stack Overflow or respective owner