zoukankan      html  css  js  c++  java
  • WindowsService问题


    正在开始安装的“安装”阶段。
    查看日志文件的内容以获得 C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects
    \Test_Service\Test_Service\bin\Debug\test_service.exe 程序集的进度。
    该文件位于 C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Service\
    Test_Service\bin\Debug\test_service.InstallLog。
    正在安装程序集“C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Ser
    vice\Test_Service\bin\Debug\test_service.exe”。
    受影响的参数是:
    logtoconsole =
    assemblypath = C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_S
    ervice\Test_Service\bin\Debug\test_service.exe
    i =
    logfile = C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Servic
    e\Test_Service\bin\Debug\test_service.InstallLog
    正在安装服务 Service1...
    正在日志 Application 中创建 EventLog 源 Service1...

    在“安装”阶段发生异常。
    System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可
    访问的日志: Security。


    正在开始安装的“回滚”阶段。
    查看日志文件的内容以获得 C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects
    \Test_Service\Test_Service\bin\Debug\test_service.exe 程序集的进度。
    该文件位于 C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Service\
    Test_Service\bin\Debug\test_service.InstallLog。
    正在回滚程序集“C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Ser
    vice\Test_Service\bin\Debug\test_service.exe”。
    受影响的参数是:
    logtoconsole =
    assemblypath = C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_S
    ervice\Test_Service\bin\Debug\test_service.exe
    i =
    logfile = C:\Users\Ramon.Fu\Documents\Visual Studio 2005\Projects\Test_Servic
    e\Test_Service\bin\Debug\test_service.InstallLog
    正在将事件日志还原到源 Service1 的前一状态。
    在 System.Diagnostics.EventLogInstaller 安装程序的“回滚”阶段发生异常。
    System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可
    访问的日志: Security。
    在安装的“回滚”阶段发生异常。将忽略该异常并继续回滚。但是,在完成回滚后计算机可
    能无法完全还原到它的初始状态。

    “回滚”阶段已成功完成。

    已完成事务处理安装。
    安装失败,已执行回滚。

    解决方案:

    用管理员身份运行 cmd.exe 然后再次尝试 installutil,这个问题多半是因为 UAC 导致的。

    您的系统看上去像是 Windows Vista 或者 Windows 7,所以需要管理员身份运行它。

  • 相关阅读:
    012 数据类型基础
    013 数据类型:数字类型
    Codeforces 235C Cyclical Quest (后缀自动机)
    BZOJ 4032 Luogu P4112 [HEOI2015]最短不公共子串 (DP、后缀自动机)
    BZOJ 4278 [ONTAK2015]Tasowanie (后缀数组)
    [加强版] Codeforces 835D Palindromic characteristics (回文自动机、DP)
    BZOJ 4044 Luogu P4762 [CERC2014]Virus Synthesis (回文自动机、DP)
    BZOJ 2434 Luogu P2414 [NOI2011]阿狸的打字机 (AC自动机、树状数组)
    BZOJ 2754 [SCOI2012]喵星球上的点名 (AC自动机、树状数组)
    BZOJ 4327 [JSOI2012]玄武密码 (AC自动机)
  • 原文地址:https://www.cnblogs.com/fjzhang/p/2729188.html
Copyright © 2011-2022 走看看