This project has moved. For the latest updates, please go here.

OpenPDC Service cannot be started

Feb 23, 2011 at 9:50 PM

Hello Friends,

We are trying to use the OpenPDC Service but when we try to start the service the following message is registered in the Event Viewer:

Service cannot be started. System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)   at System.Diagnostics.PerformanceCounterLib.get_NameTable()   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()   at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)   at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)   at System.Diagnostics.PerformanceCounter.InitializeImpl()   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)   at TVA.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, String aliasName, String valueUnit, Single ...

Can You help me to solve the problem?. 

Regards,

Francisco Montero

Coordinator
Feb 24, 2011 at 2:50 AM

That's interesting - are you using a localized version of Windows - that is, non-English?

Feb 24, 2011 at 3:46 PM

Hello Ritchie,

Thanks a lot for your assistance. We installed the OpenPDC last version in a Windows 2003 Server Standard Edition Computer with the Regional Settings in Spanish.

Regards,

Francisco Montero

Coordinator
Feb 25, 2011 at 8:07 PM

Can you tell me if the following registry key exists:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009

This is the English version (non-localized) location of the performance counter names. There should be a string value here called "Counter" which contains the indexes and performance counter names.

My guess is that this is corrupted or missing - might be nice to know which counter was actually missing - do you perhaps have any more text of the error?

Ritchie

Feb 28, 2011 at 7:17 PM

Hello Ritchie,

The registry key that you mention exists and contains a lot of white spaces and at the end values like:

13422  ASP.NET Apps v4.0.30319

13420 ASP.NET v4.0.30319

13424 Application Restarts

13426 Applications Running, etc

There is not more information about the error. Only the text at begining of the discussion is registered in the Windows Event Viewer.

--------------------------------------

Tipo de suceso: Error
Origen del suceso: openPDC
Categoría del suceso: Ninguno
Id. suceso: 0
Fecha:  28/02/2011
Hora:  01:12:51 p.m.
Usuario:  No disponible
Equipo: CONTROL-PDC
Descripción:
Service cannot be started. System.InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
   at System.Diagnostics.PerformanceCounterLib.GetStringTable(Boolean isHelp)
   at System.Diagnostics.PerformanceCounterLib.get_NameTable()
   at System.Diagnostics.PerformanceCounterLib.get_CategoryTable()
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String category, String counter, Boolean& categoryExists)
   at System.Diagnostics.PerformanceCounterLib.CounterExists(String machine, String category, String counter)
   at System.Diagnostics.PerformanceCounter.InitializeImpl()
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, Boolean readOnly)
   at System.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName)
   at TVA.Diagnostics.PerformanceCounter..ctor(String categoryName, String counterName, String instanceName, String aliasName, String valueUnit, Single ...

Para obtener más información, vea el Centro de ayuda y soporte técnico en http://go.microsoft.com/fwlink/events.asp.

--------------------------------------

Regards,

Fco. Montero

Coordinator
May 18, 2011 at 6:29 PM

I think I may have figured this out, try executing "lodctr /R" from an administrative command prompt:

For more information, see here: http://support.microsoft.com/kb/300956

Thanks!
Ritchie