Error in creating custom performance counter

Apr 12 2006 6:02 AM

Hi,
   I am trying to create a custom Performance counter. I am Using a .NET 2005 web application for this purpose. I am getting "Required registry access denied" error on the execution of the line of code given below -

PerformanceCounterCategory.Create("EDWCategory", "CounterHelp",PerformanceCounterCategoryType.SingleInstance,"CounterEDW_BI", "Counter to understand & apply");

Could anyone pls tell me how to go about solving this?

Thanks
Soumya