Cannot load counter data because invalid -Exception index

I am using C # and WPF. The operating system is Windows 7 Professional and Visual Studio 2012, SQL Server 2012.

I used Devexpress Grid in wpf. I want to bind it to a database using ADO.Net Server mode. I selected the "Source Source Wizard" option to perform this binding, but it was generated after an exception:

InvalidOperationException: Cannot load counter data because an invalid index was read from the registry.

What does this exception mean?

Could you help me solve this problem.

Thanks, Annie.

+49
c # sql-server-2012
Jul 31 '13 at 20:20
source share
3 answers

It’s just that this message related to Microsoft Dynamics CRM updates was not installed, and the marked response for this message helped significantly:

Click "Start", type cmd with the right mouse button cmd.exe and select "Run as administrator". At the command prompt, type lodctr / r, and then press ENTER.

Apparently, Windows stores some cache counter in the registry in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009 \ Counter + Help . If this cache is damaged (has empty lines), you get the above errors - and lodctr /r restores this cache.

+70
Aug 27 '13 at 14:06 on
source share

Although this has already been answered, I see that people repeatedly get the same error as I did when I tried to solve it. If at startup:

C:\windows\system32> lodctr /r

you will get an error

Error: Unable to rebuild performance counter setting from system backup store, error code is 2

then you need to run

C:\windows\SysWOW64> lodctr /r

after which you should receive

Info: Successfully rebuilt performance counter setting from system backup store

Please note that this must be done as an administrator. I found a solution here

+65
Jun 25 '14 at 8:44
source share
  • Go to the "Start" menu, enter "cmd".

  • Right-click on cmd.exe and select "Run as Administrator."

  • Type "lodctr / r" and press enter.

Then you will receive the message "Information: the performance counter setting from the system backup storage was successfully rebuilt.

  1. Check if there are disabled providers, type "lodctr / q" and press enter

  2. Then you will get a long list of suppliers, make sure that [CRM client] is enabled, see below

If not, type "lodctr / e: CRM Client" and press enter.

  1. Install Microsoft Dynamics CRM to update the Outlook client.
+5
Mar 10 '16 at 6:32
source share



All Articles