【问题标题】:How to solve "Invalid Service Account" Issue while installing win service?安装win服务时如何解决“无效服务帐户”问题?
【发布时间】:2013-04-08 03:19:33
【问题描述】:

我正在使用 Msbuild Extension Pack 远程安装 windows 服务。每次我尝试部署我的应用程序时,我都会收到此有线错误:

Install Service failed with code: 'StatusInvalidServiceAccount' 

远程服务器中的帐户设置为作为服务登录,即使它不能解决问题。

注意:这是使用 Visual Studio 2010 创建的 Windows 服务。由于我的环境中的网络问题,我不希望 Powershell 安装它。

真的很感谢有关该主题的任何帮助。

【问题讨论】:

标签: c# windows-services setup-deployment msbuildextensionpack


【解决方案1】:

在将服务部署到远程机器时,您需要使用域帐户,并且该帐户需要设置为作为服务登录。

Under <user>

and under <Remote User>

你让这个用户在两台机器上都是管理员。

【讨论】:

    猜你喜欢
    • 2022-06-16
    • 2020-05-12
    • 2011-10-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多