c# - Validating a WCF Service on startup -


have wcf service, hosted in iis, , want verify configuration settings valid, e.g. logging directory exists or can created. if configuration fails, want consider service invalid, , notify via event log, etc. ideally service unavailable if invalid.

if hosted windows service, easily. hosted in iis? don't know of way make service unavailable code.

any ideas? if helps, wcf service runs in own app pool.

tia! james

if throw exception service not available. in service's constructor checks , if perfect , if not throw exception , service not there. if remote errors off browsing service show error , stack trace.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -