2

ASP.NET has a nice feature called Health Monitoring. Once defined in system.web/healthMonitoring section we get very useful web events to log/analyze. Are there any similar means for WCF services that don't use ASP.NET compatibility mode and hosted under IIS7/WAS ?

Update: What i've found out is that enabling system.web/healthMonitoring in WCF service's web.config allows to get some of web events: System.Web.HttpRuntime, 1002, "Application is shutting down. Reason: Configuration changed.". No heartbeats and others. I don't understand how that works if ASP.NET is not involved in the process but that's the fact.

UserControl
  • 14,766
  • 20
  • 100
  • 187

2 Answers2

1

Please go through below links. Not sure what exactly you are asking.

Link 1

Link 2

Link 3

Rais Alam
  • 6,970
  • 12
  • 53
  • 84
himanshu
  • 434
  • 3
  • 8
-1

You can add some configuration to the config file of the client and will have a lot of logging information. check the below links

Ghyath Serhal
  • 7,466
  • 6
  • 44
  • 60
  • Not what i exactly meant, sorry. This is regular WCF logging, i can't get heart beats and app pool recycling events with it, can i? – UserControl Oct 28 '11 at 09:13
  • @UserControl: a WCF service doesn't typically "live" all the time - the service class is instantiated to handle a request, and freed once the response is sent back - so there's really nothing to "monitor" most of the time... – marc_s Oct 28 '11 at 09:18
  • If WCF service is hosted by IIS/WAS it's recycled and activated by request the same way as regular ASP.NET application, isn't it? – UserControl Oct 28 '11 at 09:22
  • @UserControl: **NO** - it's not the WCF **service** that's dealt with by the IIS/WAS - but the **service host** - not the same thing! – marc_s Oct 28 '11 at 09:42