Win7 installutil安装服务失败

在Win7系统中,尝试使用installutil安装服务时遇到失败,错误表现为System.Security.SecurityException,提示与安全性相关。问题源于无法创建EventLog源。通过以管理员身份运行Visual Studio 2010的命令提示符,成功解决了这个问题。
摘要由CSDN通过智能技术生成

Win7  installutil安装服务失败

正在安装程序集“E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.exe”。
受影响的参数是:
   logtoconsole =
   logfile = E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.InstallLog
   assemblypath = E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.exe
正在安装服务 MillerApp.Service...
正在日志 Application 中创建 EventLog 源 MillerApp.Service...
正在回滚程序集“E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.exe”。
受影响的参数是:
   logtoconsole =
   logfile = E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.InstallLog
   assemblypath = E:\Applications\MillerApp\MillerApp.Service\bin\Release\MillerApp.Service.exe
正在将事件日志还原到源 MillerApp.Service 的前一状态。
在 System.Diagnostics.EventLogInstaller 安装程序的“回滚”阶段发生异常。
System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值