Windows服务启动问题 [英] Windows Service Start Issue

查看:91
本文介绍了Windows服务启动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我已经在vs 2008(在Windows 7 OS上)中开发了Windows服务.该服务已部署并按预期工作.但是,当我尝试在其他系统上安装该服务时,该服务无法启动.它显示错误"无法在本地计算机上启动服务,错误1067..可能是问题所在.

Dear all,
I have developed a windows service in vs 2008(on windows 7 OS).It is deployed and works as expected.But when i am trying to install it on other systems the service cant be started.it shows the error "Could not Start service on local computer error 1067".What might be the problem.
All your advices are needed.

推荐答案

这是您的代码停止了服务,仅此而已.可能有上百万个原因,包括简单的逻辑,未捕获的异常等.尝试调试您的代码,使用日志记录来分析执行情况.由于您未提供任何代码示例,因此很难建议更准确的信息.

—SA
This is your code stopped the service, nothing else. There can be million reasons for that, simple logic, uncaught exception and so on. Try to debug your code, use logging to analyze the execution. It''s hard to advise something more exact, as you did not provide any code sample.

—SA


此错误代码是最常见的错误代码,它表示出了一些问题:(如果未处理的异常导致托管代码中出现错误, ,您将可以在应用程序日志中获得更多信息.使用 .NET Runtime 作为源过滤错误. 不要让异常无法处理.将日志记录添加到您的代码中. NLog [ ^ ]是个不错的选择.
This error code is the most general of all, it means that something went wrong :( If an unhandled exception is causing an error in the managed code, you will be able to get more information in the application log. Filter for errors with .NET Runtime as source.
Don''t let exceptions be unhandled. Add logging to your code. NLog[^] is a good one.


这篇关于Windows服务启动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆