Hi,
I have created one performance counter category on the localhost by:

Code:
PerformanceCounterCategory.Create("MyApplication","Details of the Counter",cDataCollection);
I have logged in as Administrator. But even then, my app crashes and gives the error 'Access Denied' at that particular line.

Why?

Thanks