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
Running this command from command prompt may help: lodctr /r
Check if all are enabled: lodctr /q
I get an error that says:
ReplyDeleteError: Unable to rebuild performance counter setting from system backup store, e
rror code is 5
Know any easier way to get around this problem?
Figured out that each of these error codes are neatly documented here:
ReplyDeletehttp://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
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."
ReplyDeletelodctr /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
Thank you very much. I got error and /R solved the problem.
ReplyDeleteAwesome...I solved my problem
ReplyDeleteOpen CMD as an Administrator and use "lodctr /r"command. It works - thanks.
ReplyDelete