简体   繁体   English

wcf服务托管在windows服务安装报错

[英]wcf service hosting on windows service installation error

when i install wcf service hosting on windows service using InstallUtil i get the following Error Message.当我使用 InstallUtil 在 windows 服务上安装 wcf 服务托管时,我收到以下错误消息。

An exception occurred during the Rollback phase of the System.ServiceProcess.Ser viceProcessInstaller installer. System.ServiceProcess.ServiceProcessInstaller 安装程序的回滚阶段发生异常。 System.NullReferenceException: Object reference not set to an instance of an obj ect. System.NullReferenceException:Object 引用未设置为对象的实例。 An exception occurred during the Rollback phase of the installation.安装的回滚阶段发生异常。 This except ion will be ignored and the rollback will continue.这个 except 离子将被忽略,回滚将继续。 However, the machine might n ot fully revert to its initial state after the rollback is complete.但是,在回滚完成后,机器可能不会完全恢复到其初始 state。

The Rollback phase completed successfully.回滚阶段成功完成。

The transacted install has completed.事务安装已完成。 The installation failed, and the rollback has been performed.安装失败,已回滚。

Can You please tell me how to overcome this problem?你能告诉我如何克服这个问题吗?

Do it as an Admin.以管理员身份执行。 I mean to say run a command prompt as an Admin and try.我的意思是说以管理员身份运行命令提示符并尝试。 I had the same error and solved using this technique.我有同样的错误并使用这种技术解决了。

There should be more information in the assemblyname.InstallLog file. assemblyname.InstallLog 文件中应该有更多信息。 Check for errors there first.首先检查那里的错误。

Check the application event log, run this:检查应用程序事件日志,运行:

eventvwr.msc

You can see there the details of the real exception your'e getting.您可以在那里看到您获得的真正异常的详细信息。

If you're System.ServiceModel settings is in the configuration file, the error you're getting might be because of an invalid configuration settings.如果您的System.ServiceModel设置在配置文件中,您收到的错误可能是因为配置设置无效。

You can follow this tutorial in installing a Managed Windows Service if you're having a hard time in the installation.如果您在安装过程中遇到困难,可以按照本教程安装托管 Windows 服务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM