Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2004

Tip: Looking for answers? Try searching our database.

Category does not exist - Performance counter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LP - 08 Nov 2004 11:18 GMT
Hi,

I am trying to run my webservice which creates a performance counetr and
writes to it on Windows 2003, where the following error is returned. It runs
fine on Windows 2000.

Error:
[InvalidOperationException: Category does not exist.]
  System.Diagnostics.PerformanceCounterLib.CounterExists(String machine,
String category, String counter) +283
  System.Diagnostics.PerformanceCounter.Initialize() +235
  System.Diagnostics.PerformanceCounter..ctor(String categoryName, String
counterName, String instanceName, Boolean readOnly) +127
  System.Diagnostics.PerformanceCounter..ctor(String categoryName, String
counterName, Boolean readOnly) +21
  System.Diagnostics.PerformanceCounter..ctor(String categoryName, String
counterName) +11
  PCHistory.Global.SetupPerformanceCounters()
  PCHistory.Global.Application_Start(Object sender, EventArgs e)

Pls help.
Martin Kulov - 08 Nov 2004 21:51 GMT
Hi LP,

I suppose that your category is not created in the performance counters at all. You should install the performance counter first by setting up installer project and use PerformanceCounterInstaller class. You should not have to leave the creation of the counter by your web service since, which is your case, it may not have sufficient rights. It did have though on Windows 2000, but due to increased security in Windows 2003 it fails.

Best,
Martin

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.