WCF Library hosted in a Windows Service with Message Logging turned on works until it is turned off by loading Exchange Admin snapin
We have a WCF library hosted in a Windows Service. The hosting config file is set to turn on Message logging and this is working as documented. The Windows Application Log indicates that "Message Logging has been turned on.", event ID: 8, Source: System.ServiceModel 4.0.0.0. However, when one of the services loads the following powershell snapin, message logging is turned off. The problem line of code and snapin is as follows: ps.Runspace.RunspaceConfiguration.AddPSSnapIn("Microsoft.Exchange.Management.PowerShell.E2010", out warning); Loading this Exchange Management Administration Snapin has the side effect of turning off logging of WCF Messages. Immediately after the above snapin is loaded the following Event is logged to the Windows App log: 'Message logging has been turned off.', Event ID: 9, Source: System.ServiceModel 4.0.0.0. That is really not very nice since we would like to load this Snapin and log the WCF messages. I don't see any doc on how to turn it back on in the code. Any ideas on how to prevent loading of this plugin from turning off WCF message logging or on how to turn it back on from code after loading the Exchange snapin? Thanks.
April 9th, 2012 12:11pm

Hi rambopierce, I'm researching the issue and will update it soon. Thanks.Frank Wang TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
April 11th, 2012 2:07am

Thank you.
April 11th, 2012 2:23pm

Ten days and no progress. Could someone on the MS Exchange development or support teams take a look at this? There is really no good reason why simply loading the "Microsoft.Exchange.Management.PowerShell.E2010" snap in turns off logging of WCF Messages.
Free Windows Admin Tool Kit Click here and download it now
April 19th, 2012 11:29am

Sorry, this thread seems to be idle. The exchange admins might have no idea on WCF logging. I suggest you post your queries on to appropiate forum - http://social.msdn.microsoft.com/Forums/en/wcf/threads
May 26th, 2012 5:16am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics