安装WCF服务-安装Windows服务(System.ComponentModel.Win32Exception:远程过程调用失败)
安装WCF服务-安装Windows服务(System.ComponentModel.Win32Exception:远程过程调用失败)“安装”阶段发生异常。System.ComponentModel.Win32Exception:远程过程调用失败!
解决方案:
关掉杀毒软件,如360安全卫士,或者在杀毒软件内添加文件信任。
附上提示信息:
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 的前一状态。
“回滚”阶段已成功完成。
已完成事务处理安装。
安装失败,已执行回滚。
//来源:C/S框架网(www.csframework.com) QQ:1980854898
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 的前一状态。
“回滚”阶段已成功完成。
已完成事务处理安装。
安装失败,已执行回滚。
//来源:C/S框架网(www.csframework.com) QQ:1980854898
参考文档:
如何在Windows服务中安装和部署WCF服务器?
使用批处理文件安装或卸载WCF服务(Windows服务)
C# 使用cmd命令安装及卸载WCF Windows 服务
C/S系统快速开发平台采用Windows服务承载的WCF服务器
使用批处理文件(.bat)安装WCF服务失败解决方案
C#.NET VS2015运行时调试Windows服务承载的WCF程序(新)
C#.NET VS2015运行时调试Windows服务(宿主)承载的WCF程序
C#源码-Windows服务管理器,实现安装,卸载,启动和停止服务等功能
C# 使用cmd命令卸载WCF Windows 服务
调用WCF服务System.ServiceModel.ServiceActivationException:"无法激活请求的服务"
【原创】WCF开发框架 - 采用wsHttpBinding及basicHttpBinding连接https协议的WCF服务
WCF开发框架 - vs发布IIS承载(IIS Hosting)的WCF应用服务详解
不使用配置文件构建和使用WCF服务(WCF Service)
承载 Service Host 和使用 WCF 服务
Windows服务定时作业计划软件框架(C#)|C/S开发框架
Windows服务弹出Winform窗体应用程序实现桌面交互|C/S开发框架
如何在Windows服务中安装和部署WCF服务器?
使用批处理文件安装或卸载WCF服务(Windows服务)
C# 使用cmd命令安装及卸载WCF Windows 服务
C/S系统快速开发平台采用Windows服务承载的WCF服务器
使用批处理文件(.bat)安装WCF服务失败解决方案
C#.NET VS2015运行时调试Windows服务承载的WCF程序(新)
C#.NET VS2015运行时调试Windows服务(宿主)承载的WCF程序
C#源码-Windows服务管理器,实现安装,卸载,启动和停止服务等功能
C# 使用cmd命令卸载WCF Windows 服务
调用WCF服务System.ServiceModel.ServiceActivationException:"无法激活请求的服务"
【原创】WCF开发框架 - 采用wsHttpBinding及basicHttpBinding连接https协议的WCF服务
WCF开发框架 - vs发布IIS承载(IIS Hosting)的WCF应用服务详解
不使用配置文件构建和使用WCF服务(WCF Service)
承载 Service Host 和使用 WCF 服务
Windows服务定时作业计划软件框架(C#)|C/S开发框架
Windows服务弹出Winform窗体应用程序实现桌面交互|C/S开发框架
其它资料:
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
什么是C/S结构? | C/S框架核心组成部分 | C/S框架-WebService部署图 | C/S框架-权限管理 | C/S结构系统框架 - 5.1旗舰版介绍 | C/S结构系统框架 - 功能介绍 | C/S结构系统框架 - 产品列表 | C/S结构系统框架 - 应用展示(图) | 三层体系架构详解 | C/S架构轻量级快速开发框架 | C/S框架网客户案例 | WebApi快速开发框架 | C/S框架代码生成器 | 用户授权注册软件系统 | 版本自动升级软件 | 数据库底层应用框架 | CSFramework.CMS内容管理系统 |
在线客服
