Window Service已启动,但随后自动停止 [英] Window Service started but then stopped automatically

查看:94
本文介绍了Window Service已启动,但随后自动停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS 2010创建了一个Window Service。它运行良好。今天,我只修改了一个Oracle DB表。然后我重新启动了Window Service,但它自动停止了。希望我能从经验丰​​富的专业人士那里得到一些暗示。在此先感谢。

I created a Window Service using VS 2010. It worked well. Today, I only modify an Oracle DB table. Then I restarted the Window Service, but got it stopped automatically. Hopefully, I can get a hint from an experienced professional. Thanks in advance.

推荐答案

如果您有源代码,请尝试将异常日志记录添加到您的服务以确定出现了什么问题,请参阅: log4net的迷你插件替换 [ ^ ]
If you have the source code, then try adding exception logging to your service to determine what went wrong, see : Mini Drop-in Replacement for log4net[^]


这篇关于Window Service已启动,但随后自动停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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