zoukankan      html  css  js  c++  java
  • [Enterprise Library]调用Enterprise Library时出现的错误事件之关闭办法

     

    [Enterprise Library]调用Enterprise Library出现的错误事件之关闭办法
    编写者:郑昀@ultrapower 20050531

    问题:
    安装完Microsoft patterns & practices Enterprise Library”之后,调用它的库时,经常会在事件查看器中看到类似于下面的错误报告

    事件类型:     错误

    事件来源:     Enterprise Library Instrumentation

    事件种类:    

    事件 ID: 0

    描述:

    Failed to create instances of performance counter 'Cache Total Turnover Rate' - 请求的性能计数器不是自定义计数器,它必须初始化为只读。.

     

    有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

    或者

    事件类型:     错误

    事件来源:     Enterprise Library Instrumentation

    事件种类:    

    事件 ID: 0

    描述:

    Failed to create instances of performance counter 'Total Cache Entries' - 请求的性能计数器不是自定义计数器,它必须初始化为只读。.

     

    有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

    等等。


    解决之道就是:

    运行X:\Program Files\Microsoft Enterprise Library\src文件夹下的InstallServices.bat

    它会安排好它所需要的性能计数器,如它会在安装“Logging and Instrumentation Application Block”时,

    正在安装 WMI 架构:已开始

    正在安装 WMI 架构:已完成

    正在日志 Application 中创建 EventLog Enterprise Library Logging Service...

    正在日志 Application 中创建 EventLog Enterprise Library Backup Sink...

    正在日志 Application 中创建 EventLog Enterprise Library Distributor Service..

    .

    正在创建性能计数器类别 Enterprise Library Logging Service

    运行过之后,再次调用库,就不会出现这些错误事件了。

    编写者:郑昀@ultrapower

  • 相关阅读:
    [设计模式] 10 外观模式 facade
    [设计模式] 11 享元模式 Flyweight
    [设计模式] 9 装饰者模式 Decorator
    [设计模式] 8 组合模式 Composite
    float2int
    《ASP.NET》数据绑定——GridView
    Android Studio左边栏Project不见了?
    Linux下的五种I/O模型
    Shell编程入门(第二版)(下)
    Android訪问网络,使用HttpURLConnection还是HttpClient?
  • 原文地址:https://www.cnblogs.com/zhengyun_ustc/p/165376.html
Copyright © 2011-2022 走看看