本文介绍了安装.NET Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图安装我写了使用的第一个服务:

I'm trying to install the first service I wrote using:

installutil XMPPMonitor.exe

我得到以下信息:

I get the following message:

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.exe assembly's progress.
The file is located at E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.InstallLog.

The Install phase completed successfully, and the Commit phase is beginning.
See the contents of the log file for the E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.exe assembly's progress.
The file is located at E:\Documents\Projects\XMPPMonitor\XMPPMonitor\bin\Debug\XMPPMonitor.InstallLog.

The Commit phase completed successfully.


The transacted install has completed.

但我不会设置,当我运行services.msc列出的服务。我失去了一些东西?

But I'm not setting the service listed when I run services.msc. Am I missing something?

推荐答案

请确保您正确地创建和配置的和的。这些是installutil使用过程中的实际注册的每个服务。

Make sure you correctly created and configured the ServiceInstaller and ServiceProcessInstaller. These are what installutil uses to actually register each service within the process.

这篇关于安装.NET Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:54