windows服务安装(System.ComponentModel.Win32Exception:远程过程调用失败)
“安装”阶段发生异常。System.ComponentModel.Win32Exception:远程过程调用失败
附上提示信息
C:\Windows\Microsoft.NET\Framework\v4.0.30319>installUtil.exe C:\Users\Administr
ator\Desktop\WindowsService1\WindowsService1\WindowsService1\bin\Debug\WindowsSe
rvice1.exe
Microsoft(R) .NET Framework 安装实用工具版本 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
正在运行事务处理安装。
正在开始安装的“安装”阶段。
查看日志文件的内容以获得 C:\Users\Administrator\Desktop\WindowsService1\WindowsS
ervice1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\Window
sService1\bin\Debug\WindowsService1.InstallLog。
正在安装程序集“C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\W
indowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\Wind
owsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = C:\Users\Administrator\Desktop\WindowsService1\WindowsService1
\WindowsService1\bin\Debug\WindowsService1.exe
正在安装服务 Service1...
正在日志 Application 中创建 EventLog 源 Service1...
在“安装”阶段发生异常。
System.ComponentModel.Win32Exception: 远程过程调用失败。
正在开始安装的“回滚”阶段。
查看日志文件的内容以获得 C:\Users\Administrator\Desktop\WindowsService1\WindowsS
ervice1\WindowsService1\bin\Debug\WindowsService1.exe 程序集的进度。
该文件位于 C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\Window
sService1\bin\Debug\WindowsService1.InstallLog。
正在回滚程序集“C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\W
indowsService1\bin\Debug\WindowsService1.exe”。
受影响的参数是:
logtoconsole =
logfile = C:\Users\Administrator\Desktop\WindowsService1\WindowsService1\Wind
owsService1\bin\Debug\WindowsService1.InstallLog
assemblypath = C:\Users\Administrator\Desktop\WindowsService1\WindowsService1
\WindowsService1\bin\Debug\WindowsService1.exe
正在将事件日志还原到源 Service1 的前一状态。
“回滚”阶段已成功完成。
已完成事务处理安装。
安装失败,已执行回滚。
在安装windows服务时出现上述错误,原来是因为电脑上有杀毒软件。关掉就好了。
windows服务安装(System.ComponentModel.Win32Exception:远程过程调用失败)的更多相关文章
- windows服务安装 System.IO.FileLoadException
报错如下: System.IO.FileLoadException: 未能加载文件或程序集“file:///D:\WindowsService\bin\Debug\WindowsService.exe ...
- windows服务安装错误 在‘安装’过程发生异常:System.ComponentModel.Win32Exception:系统正在关机
今天安装windows服务的时候先是在本地安装测试通过,但是一到服务器就一直安装失败 在‘安装’过程发生异常:System.ComponentModel.Win32Exception:系统正在关机 然 ...
- Windows服务安装异常:System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志。不可 访问的日志: Security
Windows服务安装异常:System.Security.SecurityException: 未找到源,但未能搜索某些或全部事件日志.不可 访问的日志: Security 2种方法处理: 一.右键 ...
- Windows服务安装与控制
Windows服务安装与控制 1.建立服务 (1)定义一个ServiceInstaller using System; using System.Collections.Generic; using ...
- Windows服务安装、卸载、启动和关闭的管理器
最近在重构公司的系统,把一些需要独立执行.并不需要人为关注的组件转换为Windows服务,Windows服务在使用的过程中有很多好处,相信这一点,就不用我多说了.但是每次都要建立Windows服务项目 ...
- System.ComponentModel.Win32Exception (0x80004005): 无效的窗口句柄。
原文:System.ComponentModel.Win32Exception (0x80004005): 无效的窗口句柄. 在 WPF 获取鼠标当前坐标的时候,可能会得到一个异常:System.Co ...
- 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问。
本地win7 本地正常,服务器win2008r2,服务器报错! 异常详细信息: System.ComponentModel.Win32Exception: 拒绝访问. 拒绝访问. 说明: 执行当前 W ...
- Windows服务安装与卸载
Windows服务安装与卸载,使用到了InstallUtil.exe 安装: c: cd "C:\Windows\Microsoft.NET\Framework\v4.0.30319&quo ...
- C#编写的windows服务安装后启动提示“服务启动后又停止了”
使用C#编写的windows服务安装到服务器上行后进行启动时,总是提示“服务启动后又停止了”. 检查了服务逻辑是没问题,安装在开发本地也是正常,网上查了资料说是可能是服务没有注册,我检查了服务是正常注 ...
随机推荐
- 兼容PHP和Java的des加密解密代码分享
这篇文章主要介绍了兼容PHP和Java的des加密解密代码分享,适合如服务器是JAVA语言编写,客户端是PHP编写,并需要des加密解密的情况,需要的朋友可以参考下 作为一个iOS工程师来解决安卓的问 ...
- Asp.Net MVC5 格式化输出时间日期
刚好用到这个,网上找的全部是输出文本框内容的格式化日期时间 而我需要只是在一个表格中的单元个中输出单纯的文字 最后在MSDN上找到 HtmlHelper.FormatValue 方法 public s ...
- iscc2016-basic-心灵鸡汤
用winhex打开发现 ISCCCongratulations! You need remember: DEath IS JUST A PaRT oF lIFE,sOMeTHInG wE'RE aLL ...
- refreshcontrol 实现下拉刷新的功能
该组件实现下拉刷新的功能.不过该组件是用在ScrollView的内部的,为ScrollView添加一个下拉刷新的功能.当ScrollView的垂直方向的偏移量scrollY:0的时候,手指往下拖拽Sc ...
- linux系统下root用户和普通用户的时区不一致
1. 发现这个问题是在root下执行 date -R 和 普通用户下执行 date -R,发现时区不一致 2. 在一些linux机器下,发现是一致的 3. 什么原因呢?找了半天,最后发现 时区一致的机 ...
- Comparing randomized search and grid search for hyperparameter estimation
Comparing randomized search and grid search for hyperparameter estimation Compare randomized search ...
- 【C++基础之十五】内联函数
1.优点 为什么使用内联函数,而不使用宏定义,虽然宏本身采用的展开来替代函数调用的压栈出栈返回等操作,提高了代码的效率,但是会有两个问题: (1)边际效应 宏只是展开代码而已,所以在一些操作符的优先级 ...
- 【Linux】鸟哥的Linux私房菜基础学习篇整理(三)
1. gzip [-cdtv#] filename:压缩.参数:-c:将压缩的数据输出到屏幕上,可通过数据重定向进行处理:-d:解压缩的参数:-t:可以用来检验一个压缩文件的一致性,查看文件有无错误: ...
- Unity C# 游戏间物体间的访问
脚本语言:C# 1.在Unity工程中新建两个物体:Cube和Sphere 2.分别为Cube和Sphere添加脚本CubeScript和SphereScript: 在SphereScript这两个定 ...
- Gvim各种插件配置(windows环境下)
1.Vundle插件:https://github.com/gmarik/Vundle.vim 用于管理Vim插件,安装此插件需要系统中已安装git,参考链接:Git for Windows安装和基本 ...