zoukankan      html  css  js  c++  java
  • Enterprise Library 服务问题

        在使用Enterprise Library而没有注册服务的时候会出现这样的问题,"Editing Post "Failed to create instances of performance counter 'Cache Total Turnover Rate' - 请求的性能计数器不是自定义计数器,它必须初始化为只读。"而在有装VS.NET和Enterprise Library的机器上可以调用Bin目录下的InstallService.bat注册服务。而在没有装VS.net的机器则无法执行。可以利用%windir%\Microsoft.NET\Framework\v1.1.4322 目录下的InstallUtil.exe 工具来安装这些服务,模仿InstallService.bat的内容,写如下的批处理就可以完成服务注册了。

    @SET InstallUtilPath=%windir%\Microsoft.NET\Framework\v1.1.4322\InstallUtil.exe

    @ECHO.
    @ECHO -----------------------------------------------------------------
    @ECHO Installing Services for the Caching Application Block
    @ECHO -----------------------------------------------------------------
    @ECHO.
    if Exist Microsoft.Practices.EnterpriseLibrary.Caching.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Caching.dll

    @ECHO.
    @ECHO -----------------------------------------------------------------
    @ECHO Installing Services for the ConfigurationApplication Block
    @ECHO -----------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.Configuration.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Configuration.dll

    @ECHO.
    @ECHO -----------------------------------------------------------------
    @ECHO Installing Services for the Cryptography Application Block
    @ECHO -----------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Security.Cryptography.dll

    @ECHO.
    @ECHO -----------------------------------------------------------------
    @ECHO Installing Services for the Data Access Application Block
    @ECHO -----------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.Data.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Data.dll

    @ECHO.
    @ECHO -----------------------------------------------------------------------
    @ECHO Installing Services for the Exception Handling Application Block
    @ECHO -----------------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll

    @ECHO.
    @ECHO ---------------------------------------------------------------------------------
    @ECHO Installing Services for the Logging and Instrumentation Application Block
    @ECHO ---------------------------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.Logging.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Logging.dll

    @ECHO.
    @ECHO -----------------------------------------------------------------
    @ECHO Installing Services for the Security Application Block
    @ECHO -----------------------------------------------------------------
    @ECHO.

    if Exist Microsoft.Practices.EnterpriseLibrary.Security.dll @%InstallUtilPath% Microsoft.Practices.EnterpriseLibrary.Security.dll

    @ECHO.
    @ECHO ----------------------------------------
    @ECHO InstallServices.bat Completed
    @ECHO ----------------------------------------
    @ECHO.
    @PAUSE

  • 相关阅读:
    面试题中关于String的常见操作
    base64 加密 解密 Java代码实现 【尝试 博客园 用Markdown 编写】
    md5 32位 加密原理 Java实现md5加密
    base64 加密原理 解密原理
    2018年 10月份开始执行的最新税率表 2019年1月 小孩住房贷款等怎么扣
    安装Zookeeper和kafka,安装完毕后,遇到的错误
    Jmeter自动化测试 数据驱动测试,将数据存入csv文件中来调用,或将数据存在DB中进行调用
    Jmeter 同一个测试计划下的多个线程组 执行顺序 希望调整为顺序执行
    Json多层嵌套,要怎么提取?
    总结下我遇到过的接口测试
  • 原文地址:https://www.cnblogs.com/hjf1223/p/254706.html
Copyright © 2011-2022 走看看