Windows服务无法正常运行 [英] windows serveice not runnning properly

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

问题描述

我已经在vb.net中创建了一个Windows服务,每隔5分钟检查一次总销售额,即仅显示一条消息.
因此,我使用了寡妇服务,并以30000个间隔在其上添加了一个计时器.
然后,我使用"installutil"命令添加了服务,并成功启动了该服务.
但是消息未显示.

我在计时器滴答事件中添加了此代码.

如此.告诉我该怎么做.

I had created a windows service in vb.net to check the total sales every 5 minutes i.e. only display a message.
So i used widows service and add a timer on it with 30000 interval.
Then I added the service with "installutil" command and started it successfully.
But the message is not displayed.

I added this code in timer tick event.

So pls. tell me how to do it.

推荐答案

Windows服务无法显示任何UI.

显示UI的一种方法可能是在单独的过程中启动新窗口.
另一种可能是使用
A windows service cannot display any UI.

One way to display UI could be to launch a new window in a separate process.
Another could be to use the remoting channel as described here[^].


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

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