【问题标题】:Getting an error from the exe file of Windows Service从 Windows 服务的 exe 文件中获取错误
【发布时间】:2011-11-28 06:53:01
【问题描述】:

我在 Visual Studio 2008 (c#) 中编写了一个 Windows 服务
如何创建我的 Windows 服务的 *.exe 文件?

我正在尝试使用This guide,但无法使用。

todda.speot.is 的帮助下找到了 exe 文件。现在当我试图打开它时,我收到了这个错误:

【问题讨论】:

  • 请澄清,因为 Windows 服务是一个 .EXE 开始!你的意思是你希望它也作为一个独立的程序运行?
  • 您对该指南的具体问题是什么?你想达到什么目的?
  • @Jeremy McGee - 现在它只是一个 c# 应用程序(Windows 服务项目)...。我需要以某种方式安装它,并将其设为 exe 文件(这是我的第一个 Windows 服务,所以我有点困惑)
  • @Polynominal - 我创建了安装程序(我认为是成功的),但是当我需要在项目的“属性”窗口中选择我的 serviceInstaller 时,我只是看不到它。

标签: windows visual-studio-2008 service windows-services


【解决方案1】:

Windows 服务项目的输出是.exe。 Get 不在 bin\Debugbin\Release 文件夹中。

【讨论】:

  • 谢谢!当我单击 exe 文件时,出现错误:Windows 服务启动失败 - 无法从命令行或调试器启动服务。必须先安装 Windows 服务(使用 installutil.exe),然后使用 ServerExplorer、Windws 设备管理工具或 NET START 命令启动。
  • 你想要一个.exe,你得到了一个.exe。如果你想要别的东西,你需要问你的问题。 .exe 是什么?
  • 如果您尝试为您的服务制作安装程序,您可能需要重新阅读链接文章中的说明。请注意,它的输出可能是 .msi 而不是 .exe
  • 我找到了另一个运行良好的指南。非常感谢您的帮助! =)
猜你喜欢
  • 1970-01-01
  • 2015-09-16
  • 1970-01-01
  • 1970-01-01
  • 2021-10-04
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-11
相关资源
最近更新 更多