I have 2 windows services. Both hosting their own WCF service and it works fine.
Now one windows service (let call it the second) does need some information from the first windows service.
So I make the second dependend on the first.
This all works fine untill the second windows service starts (it started the first automatically because of dependency).
I make a call to a wcf method (even before ServiceBase.Run) from inside the second windows service towards the first. This will timeout.
I have tackled this problem by making the wcf call after ServiceBase.Run (in the OnStart method) so it looks like the program is not possible to make a wcf call before it is hosted itself (am I right?).
However when I reboot the computer the second service fails to start (startup type is automatically and the first service is started first).
The dependend service fails to start, after that, when I start it manually it will succeed
How do I make this communication work
View Complete Post