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服务安装到服务器上行后进行启动时,总是提示“服务启动后又停止了”. 检查了服务逻辑是没问题,安装在开发本地也是正常,网上查了资料说是可能是服务没有注册,我检查了服务是正常注 ...
随机推荐
- 使用 Scut 搭建通服架构
整体通服的架构图如下: 整体思路: 尽量将公共的业务逻辑分拆到单个业务服务器: 公共业务RDB读写分离,提高IO并发量: 角色简要信息.角色战斗信息修改后将ID压入修改队列,简要信息每3分钟通知同步一 ...
- ubuntu 设置root启动
http://www.linuxidc.com/Linux/2012-05/60806.htm sudo -s 输入普通用户的password 回车即可进入root权限 vi /etc/lightdm ...
- hibernate 一张数据表的流程
1. 写一个domain类来映射数据库表 2. 写一个*.hbm.xml文件来配置映射 <?xml version="1.0"?> <!DOCTYPE hiber ...
- BZOJ 1029 建筑抢修
Description 小刚在玩JSOI提供的一个称之为“建筑抢修”的电脑游戏:经过了一场激烈的战斗,T部落消灭了所有z部落的入侵者.但是T部落的基地里已经有N个建筑设施受到了严重的损伤,如果不尽快修 ...
- 【HDOJ】1484 Basic wall maze
BFS. /* 1484 */ #include <iostream> #include <queue> #include <string> #include &l ...
- Unity 3D物体的点击事件响应以及NGUI坐标和世界坐标的互相转换
Unity 版本:4.5 NGUI版本:3.6.5 参考链接:http://game.ceeger.com/Script/Camera/Camera.ScreenPointToRay.html,Uni ...
- 【Gzip】
为你的网站开启 gzip 压缩功能(nodejs.nginx) Do not forget to use Gzip for Express.js 网页GZIP压缩检测
- 【线段树】HDU 5493 Queue (2015 ACM/ICPC Asia Regional Hefei Online)
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=5493 题目大意: N个人,每个人有一个唯一的高度h,还有一个排名r,表示它前面或后面比它高的人的个数 ...
- 【动态规划】Vijos P1037 搭建双塔
题目链接: https://vijos.org/p/1037 题目大意: 给n块砖的长度(n<=100),问从中任选m块砖能否建成2个相同高度的塔. 能的话求最高高度,不能输出 Impossib ...
- Hierarchy Viewer显示视图性能指标
Hierarchy Viewer默认打开“Tree View”窗口无法显示显示Performance indicators: 但选中根视图再点击按钮“Obtain layout times for t ...