Getting started with the Enterprise Library
If you haven't checked out the recently released Enterprise Library, you should do it very soon. :-) This week I'm teaching a course about building Enterprise Applications, so it's a good opportunity to evangelize the Enterprise Library among my students.
Anyway, on a couple of my development VPC images, I noticed some events appearing in the Event Log (see below). Maybe I should have spent some more time reading the docs, but the solution is to run the InstallServices.bat which is located in X:\Program Files\Microsoft Enterprise Library\src. It's a pity that this bat file uses VS.NET to do it's magic, somebody got a nice solution for the servers that aren't running VS.NET?
- Failed to create instances of performance counter 'Total Command Executions' - The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
- Failed to create instances of performance counter 'Average Command Execution Time' - The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
- Failed to create instances of performance counter '# of Commands Executed/Sec' - The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
- Failed to create instances of performance counter 'Distributor: # of Logs Distributed/Sec' - The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly.
UPDATE: Check out Rob Gibbens' comments on this post, thanks Rob!
<snip>
Regarding the install services script, we only require devenv because we need to find the location of installutil, which we do by running vsvars32. If you don't have devenv you can modify the InstallServices.bat file with a path to installutil, or just call installutil directly over each assembly.
</snip>
Found answer at http://weblogs.asp.net/tomholl/archive/2005/02/14/372512.aspx