I have a WCF service hosted as a Windows Service. The server hosting it is running IIS6.
Every so often clients report a 503 Service Unavailable error. I can't see any problems on the server side: I can see the logging I expect from the service itself, there are no entries in the Application or System event logs.
The clients retry and will normally succeed, so apart from suggesting to the developers responsible for the client app that they automatically re-attempt when their code receives a 503 error, is there an easy way for my process to monitor IIS and be informed that its response caused an error?
So I'm after one of a number of things:
- Can I have the WCF process call into IIS to get the status code?
- Can I get the IIS service to report the 503 error in an event log (or with a callback function) for the WCF process to be informed somehow?
- Should I just get the client code to handle the situation, retries are generally successful, after all.