当前位置:编程学习 > C#/ASP.NET >>

win7旗舰版 windows服务,在安装过程中出现了远程过程调用失败的问题,请高手帮忙

通过InstallUtil.exe安装时报错。不知道什么原因,但是已经在Administrator用户下安装。

“安装”阶段发生异常。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 服务时被杀毒软件拦截了。把杀毒软件关了就行了。 --------------------编程问答-------------------- 把杀毒软件关了再安装 --------------------编程问答-------------------- --------------------编程问答-------------------- 关闭杀毒软件即可
补充:.NET技术 ,  .NET Framework
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,