服务正在运行,但无法正常工作 [英] Service is running but not working

查看:110
本文介绍了服务正在运行,但无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我不太确定,如果我能回答这个问题,但是很高兴知道一些建议.

我有Windows服务.它在一周内运行良好,但似乎在星期三停止了工作.当我检查服务状态时,它显示为正在运行,并且启动类型是自动的.该服务的间隔为2小时.因此,每2个小时就会发出大约2000个Web请求,以从网页中收集一些数据.在我的记录器中,有时会出现错误; 远程服务器返回错误:(404)找不到."我认为这是因为Httpwebrequest超时并且无法得到响应,这就是为什么将它记录为错误,但是正如我所说的那样,这并不影响服务的工作,它一直工作到星期三.那你们有什么我想检查的东西吗?

谢谢.

解决方案

确保您的服务启动类型设置是自动的,以防万一您的系统重新启动,服务会自动重新启动.


Hello folks,

I am not quite sure, if i can have an answer to this question but it will be nice to know some suggestions about it.

I have a windows service. It was working perfectly fine for a week but it seems that it stopped working on Wednesday. When I checked the service status it is appearing as running and startup type is automatic. The service has a interval of 2 hours. So in every 2 hours it makes a somewhere around 2000 web requests to gather some data from a web page. In my logger sometimes I got an error; "The remote server returned an error: (404) Not Found." I think this is because the Httpwebrequest is timed out and couldnt get a responce thats why it logs it as a error but as I said that didnt affect the service''s working it kept working until Wednesday. So do you guys have something to come up with what I can check?

Thanks.

解决方案

Make sure your service startup type settings are automatic so that in case your system reboots the service restarts automatically.


这篇关于服务正在运行,但无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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