Cannot load Counter Name data because an invalid index '' was read from the registry

If you are unable to get the performance metrics of a machine:


Running this command from command prompt may help: lodctr /r

Check if all are enabled: lodctr /q

Comments

  1. I get an error that says:
    Error: Unable to rebuild performance counter setting from system backup store, e
    rror code is 5
    Know any easier way to get around this problem?

    ReplyDelete
  2. Figured out that each of these error codes are neatly documented here:
    http://msdn.microsoft.com/en-us/library/ms681382.aspx

    In my case error code 5 meant "Permission denied".
    So i started an administrator command prompt. In Windows8: Bring your cursor down to the bottom left corner of the screen, right click and select Command Prompt (Admin).

    Ran the command lodctr /r and got an error code 2.
    Then ran lodctr /R and this one worked. Wouldn't have expected these commands to be case sensitive.

    And for anyone looking for the right way to use the performance counters, here's a nice article: http://blogs.msdn.com/b/bclteam/archive/2006/06/02/618156.aspx

    ReplyDelete
  3. Hi Thank you very much I got this error when I tried to debug script task in SSIS 2012 "Cannot load Counter Name data because an invalid index '' was read from the registry."

    lodctr /r command needs to run within "Development Command Prompt for VS2012" ( as an Administrator)

    Now I can debug within VSTA when debugger hits the break points in script task

    ReplyDelete
  4. Thank you very much. I got error and /R solved the problem.

    ReplyDelete
  5. Awesome...I solved my problem

    ReplyDelete
  6. Open CMD as an Administrator and use "lodctr /r"command. It works - thanks.

    ReplyDelete

Post a Comment

Popular posts from this blog

Network Security: LAN manager authentication level

Cisco AnyConnect Secure Mobility Client - VPN service not available. The VPN agent service is not responding