Enterprise Library and performance counters

Friday, 22 July 2005 09:07 by Greg

If you are working in a low privilege environment or will be deploying to one with Enterprise Library, read on.  By now we all know that we must either use InstallServices.bat or register the EL libraries (or use this custom installer merge module which works great too!  However, if performance counters on the destination machine are disabled there is nothing you can do to the system, you must disable instrumentation in the code of Enterprise Library.

To make the change:

  1. Open the Enterprise Library solution
  2. Navigate to the “Common“ project, then right click and bring up project properties
  3. Select Configuration Properties | Build
  4. Change the Conditional Configuration Constants like from:
DEBUG;TRACE;USEWMI;USEEVENTLOG;USEPERFORMANCECOUNTER
to
DEBUG;TRACE;
  1. Recompile and distribute as needed.

See the full article on this from Tom Hollander's blog.

While I am loving all the features EL brings to the table, it is very clear to me that any development shop that is going to use it seriously should expect to maintain a custom build internally.

Tags:  
Categories:   Professional
Actions:   E-mail | Permalink | Comments (0) | Comment RSSRSS comment feed
Comments are closed