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
Post a Comment