Wednesday, May 30, 2012

Enable Diagnostics in WCF service

Add these entries to the web.config file of the WCF service site(application) in question.




Consume the service. After the operation is complete or errors out, open the log file at the above specified location on the machine hosting the service to see the issue.

]] Comment this section when not in use to make sure it does not affect performance.

Also, make sure you set the includeExceptionDetailInFaults attribute to true in the WCF config file to see the root error.

No comments: