Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi!
I am using WCF service (self-hosted), net.tcp.

WCF host is a console application and the client a WindowsForm application.

Client opens form and it is blank. How I can make that clients form will stay blank until i run WCF host)???

For now -> if i first open client and then host. I get exception on client.

I hope that you did understand my issue! :)
Posted
Updated 7-Dec-10 19:29pm
v2

If the client application throws an exception when the WCF host isn't yet started you'll have some exception handling to do in your client when making the connection attempt.
If you find that a connection isn't possible because the service isn't started yet, have your client set a timer that will enable you to retry connecting at after a certain delay.


Cheers,

Manfred
 
Share this answer
 
Comments
Manfred Rudolf Bihy 8-Dec-10 2:16am    
WTF! What were those for? To whomever it may concern, leave a note when you vote. I might be able to improve on my answer if had some hints to what the points of critique are.
You could just have the client app periodically check to see if the server app is running...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900