The key 'LocalizedPerfCounter' does not exist in the appSettings configuration section.

Exception thrown: 'System.InvalidOperationException' in System.dll ("The key 'LocalizedPerfCounter' does not exist in the appSettings configuration section.")System.InvalidOperationException

KB2783767 补丁引起:http://support.microsoft.com/kb/2783767

解决方案:在config文件中增加<add key="LocalizedPerfCounter" value="true" />

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
    <add key="LocalizedPerfCounter" value="true" />
  </appSettings>
</configuration>


作者最新文章
C# 实现字符串文本换行的方法,文本如何换行
C# 如何循环读取文件每一行文本内容
C# DateTime AddMonths 的错误用法导致跳过日期
C# 全角转换半角,半角转换为全角
C# Word 转换 PDF 文件,如何转换 PDF