windows could not start the service on local computer error 1067 on windows server 2008 SP1

柔情痞子 提交于 2019-12-12 15:07:46

问题


I have built a window application which i am trying to turn into service. I am easily able to install it but when i try to run that service , it shows:

Windows could not start the service on local computer error 1067. The process terminated unexpectedly.

In the event view property logs , error with event id 7034 is seen but no error description. Already searched a lot for solution but no success.


回答1:


I also got same error some time back. This error has several reasons. One reason can be u are specifying some path to the file or location which the service is unable to read or write after it is installed.




回答2:


This happens when the compilation target CPU differs from the server CPU type.

Ex. running x86 built service on x64 server,

Make sure you build the project with the correct target CPU or with AnyCPU.

Visual Studio -> Project properties -> Compile -> (Select configuration) -> Target CPU -> AnyCPU



来源:https://stackoverflow.com/questions/28941659/windows-could-not-start-the-service-on-local-computer-error-1067-on-windows-serv

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!