Why are my custom performance counters not appearing for my service?

I've got a windows service that has a part I'm very paranoid about, so I've instrumented it with custom performance counters (I'm moving calls from mta threads to sta threads--don't ask).

The counters and the configuration section have been tested and are known to work... on my machine, but they aren't appearing on the server I installed to.

The installer doesn't create the counters. I check for the existence of the counters and create them if they don't exist before using them.

Is this not working because the service is running under the Local System account? Is there something about 2k3 boxes (R2) that prevents this from working like it does on my XP dev box? What am I missing?

Answers


My best guess is that the account that the service is running under doesn't have the permissions to create the counters. I would expect it to be throwing an exception though. Can you catch the exception and log it?


Need Your Help

Logic and its application to Collections.Generic and inheritance

.net inheritance collections

Everything inherits from object. It's the basis of inheritance. Everything can be implicitly cast up the inheritance tree, ie.

What the easiest way to add a image to my GWT application

gwt

I have .jpg file that I want to display. I have some Horizontal and Vertical panels and I would like to have it somewhere in there. It is a fairly large image but I would like to make a class or an

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.