Reputation: 1251
I have a WCF application hosted as a windows service. This windows service triggers this WCF every 15 minutes. But when an exception occurs in this WCF the service is getting stopped.
I don't want this service to stop. I want to some how handle this exception and trigger this WCF after another 15 minutes.
Upvotes: 1
Views: 286
Reputation: 9469
You should handle exceptions in all your service operations in order to:
Put a try/catch around every operation or use a custom behavior to handle all exceptions coming from your service
Upvotes: 1
Reputation: 7823
Look for the ServiceHost.Open(...)
and put a try/catch around it perhaps.
Upvotes: 1