无法加载计数器名称数据,因为索引无效 - 异常 [英] Cannot load Counter Name data because an invalid index -Exception
问题描述
我使用的是 C# 和 WPF - 操作系统是 windows 7 Professional 和 Visual Studio 2012、SQL Server 2012.
I am using C# and WPF - Operating System is windows 7 Professional and Visual Studio 2012, SQL Server 2012.
我在 wpf 中使用了 Devexpress Grid.我想使用 ADO.Net 服务器模式将它绑定到数据库.我选择了项目源向导"选项来执行此绑定,但它生成了以下异常:
I used Devexpress Grid in wpf. I want to bind it to database using ADO.Net Server mode. I selected "Items Source Wizard" Option to do this binding but it generated following Exception:
InvalidOperationException:无法加载计数器名称数据,因为从注册表中读取了无效索引".
InvalidOperationException: Cannot load Counter Name data because an invalid index '' was read from the registry.
这个异常是什么意思?
你能帮我解决这个问题吗.
Can you please help me to resolve this issue.
谢谢,安妮.
推荐答案
虽然这个问题已经得到解答,但我看到人们在尝试解决它时反复遇到同样的错误.如果在运行时:
Although this has already been answered, I see people are repeatedly getting the same error that I did when trying to solve it. If when you run:
<代码>C:windowssystem32>lodctr/r
你得到错误
错误:无法从系统备份存储中重建性能计数器设置,错误代码为 2
那么你需要运行
<代码>C:windowsSysWOW64>lodctr/r
之后你应该得到
信息:从系统备份存储成功重建性能计数器设置
请注意,这必须以管理员身份完成.我找到了解决方案 这里
Note this has to be done as administrator. I found the solution here
这篇关于无法加载计数器名称数据,因为索引无效 - 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!