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>


作者最新文章
ASP.NET, ASP.NET Core WebApi 返回 Controller 返回 Json 类型结果
Visual Studio 调试 ASP.NET Core 无法连接 IIS Express 服务器
ASP.NET WebApi 与 ASP.NET Core WebApi 返回 HttpResponseMessage
SQL Server 中 CASE WHEN 使用
html table 设置表格背景图片,背景色