KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm having difficulty determining the permissions needed to increment a performance counter. I had just one occurance of an InvalidOperationException/Access Denied (I think) when trying to call .Increment on a counter. This lead me to the following info: http://support.microsoft.com/kb/555129 The biggest problem surrounding the process of moving an ASP.NET application that updates performance counters into a production environment is permissions. By default, in order to increment a performance counter, the user needs to have Administrator or Power User rights. From there I added the user to the power users group and continued on my way without issue. It was from an unrelated issue that I later discovered that "Power User" no longer has any permissions beyond Vista and that let me back to that same article: Fortunately, given these alternatives, it turns out that the permission set required to update performance counters is much smaller than running as an Administrator or Power User. In the registry key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib, set the Access Control List so that the necessary user has Full Control. In our original example, the ASPNET user would be granted Full Control, but access can be granted to anyone who needs to update a performance counter. But even that doesn't seem to be true as I've now gone back and removed my test user from the power users group and my application is still incrementing counters without issue. Futher, it seems that if there were permissions to be set, it would be on the individual counter under HKLM\System\CurrentControlSet\services\. I fully admit that there may have been some other issue with my code that caused my original permissions issue. However, I need to deploy this all the way back to XP so it's import
Tags (comma-separated)
Save Edits
Cancel