无法加载计数器名称数据,因为无效的指数-Exception [英] Cannot load Counter Name data because an invalid index -Exception

查看:2842
本文介绍了无法加载计数器名称数据,因为无效的指数-Exception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#和WPF - 操作系统是Windows 7专业版和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.

我用Devex preSS电网在WPF。我想用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.

谢谢, 安妮。

推荐答案

只是有这样的消息相关的Microsoft Dynamics CRM更新,就不安装和<一href="http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/perfmon-problems-unable-to-add-counters/e90f231d-0014-457d-8b1f-5f342971597a">the这个帖子明显的答案提供了很大帮助:

Just had that message related to Microsoft Dynamics CRM updates not installing and the marked answer for this post helped greatly:

点击开始,键入cmd右键单击cmd.exe,然后选择以管理员身份运行。   在提示符下,键入 LODCTR / R 和preSS ENTER键。

Click Start, type cmd right click cmd.exe, and select Run as administrator. At the prompt, type lodctr /r and press ENTER.

显然,Windows将在注册表中的一些柜台缓存在 HKEY_LOCAL_MACHINE \ SOFTWARE \微软\的Windows NT \ CURRENTVERSION \内Perflib \ 009 \ 计数 + 帮助。如果这个缓存被损坏(有空行),你得到上面的错误 - 和 LODCTR / R 重建该缓存

Apparently, Windows keeps some counters cache in the registry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Perflib\009 \ Counter+Help. If this cache becomes corrupted (has blank lines), you get the above errors - and lodctr /r rebuilds that cache.

这篇关于无法加载计数器名称数据,因为无效的指数-Exception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆