位置:首页 > 编程专栏

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# 社区推荐