简体   繁体   English

Windows服务启动错误1069

[英]Windows Service Start-Up Error 1069

I am installing a new windows service coded in C# on a server. 我正在服务器上安装用C#编码的新Windows服务。 I installed the service fine on the server, but once i manually start up the service on a server, with the same login credentials that our other services use, i get the fatal error message notification: 我在服务器上很好地安装了该服务,但是一旦我在服务器上手动启动该服务,并且使用与其他服务相同的登录凭据,就会收到致命错误消息通知:

"Could not start the %service name% on Local Computer. Error 1069: The Service did not start due to a logon failure." “无法在本地计算机上启动%service name%。错误1069:由于登录失败,该服务未启动。”

I looked in the event log and i got a 7038 and 7000 event id error in that order. 我查看了事件日志,并按顺序得到了7038和7000事件ID错误。

7038 event id message: "The %service name% service was unable to log on as %login% with the currently configured password due to the following error: Logon failure: unknown user name or bad password. 7038事件ID消息: “由于以下错误,%service name%服务无法使用当前配置的密码作为%login%登录:登录失败:未知的用户名或错误的密码。

To ensure that the service is configured properly, use the Services snap-in in Microsoft Management Console (MMC)." 为确保正确配置服务,请使用Microsoft管理控制台(MMC)中的“服务”管理单元。”

7000 event id message: "The %service name% service failed to start due to the following error: The service did not start due to a logon failure. " 7000事件ID消息: “由于以下错误,%service name%服务无法启动:由于登录失败,服务未启动。”

I have other services that are using the same exact login account and they work fine. 我还有其他使用相同登录帐户的服务,它们工作正常。 Is there something simple I could be missing? 有什么简单的我可能会错过的东西吗?

Thanks 谢谢

Unless I'm missing something, the MMC snapin you're looking for is just the Services applet in the Admin tools where you can change the username & password. 除非我缺少任何内容,否则您要查找的MMC管理单元只是管理工具中的“服务”小程序,您可以在其中更改用户名和密码。

I always add a command line mode to any of the services that I write so that I can start them up manually and debug them, if you have something similar, try opening a command prompt using Run As to login as the service account user and then see if you can run it. 我总是向我编写的任何服务中添加命令行模式,以便我可以手动启动它们并调试它们,如果您有类似的东西,请尝试使用运行方式打开命令提示符以服务帐户用户身份登录,然后看看是否可以运行它。 If you don't have any way of running the service in non service mode you might want to consider adding something, it's quite easy and very useful when debugging. 如果您没有以非服务模式运行服务的任何方式,则可能要考虑添加一些内容,这在调试时非常简单且非常有用。

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

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