windows 无法在 windows server 2008 SP1 上启动本地计算机上的服务错误 1067
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/28941659/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
windows could not start the service on local computer error 1067 on windows server 2008 SP1
提问by Prannoy Mittal
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.
Windows 无法在本地计算机上启动服务错误 1067。进程意外终止。
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.
在事件视图属性日志中,可以看到事件 ID 为 7034 的错误,但没有错误描述。已经搜索了很多解决方案,但没有成功。
回答by Gaurav Tyagi
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.
前段时间我也遇到了同样的错误。这个错误有几个原因。一个原因可能是您指定了该服务在安装后无法读取或写入的文件或位置的某个路径。
回答by Plamen Kasabov
This happens when the compilation target CPU differs from the server CPU type.
当编译目标 CPU 与服务器 CPU 类型不同时会发生这种情况。
Ex. running x86 built service on x64 server,
前任。在 x64 服务器上运行 x86 构建的服务,
Make sure you build the project with the correct target CPU or with AnyCPU.
确保使用正确的目标 CPU 或 AnyCPU 构建项目。
Visual Studio -> Project properties -> Compile -> (Select configuration) -> Target CPU -> AnyCPU
Visual Studio -> 项目属性 -> 编译 -> (选择配置) -> 目标 CPU -> AnyCPU