Windows服务问题 [英] Problem of Windows Services

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

问题描述

我的服务不能以.exe格式正常运行,但是在调试模式下可以正常运行.

my services are not working properly in .exe form but are working fine in debuging mode

推荐答案

如果您提供的答案可能会更容易可以更清楚地表述这个问题:)

您也可以尝试以下操作:
在发布配置中生成项目,然后将所有文件(DLL,EXE)从bin \ release文件夹复制到磁盘上的单独文件夹中.使用Visual Studio命令行导航到该文件夹​​,然后使用"installutil/i ServiceName.exe"安装服务(将exe文件的名称替换为ServiceName.exe).
It would be easier to provide an answer that might work if you could rephrase the question a bit more clearly :)

You can also try this:
Build the project in release configuration, and copy all the files (DLL''s, EXE''s) from the bin\release folder to a separate folder on your disk. navigate to this folder using the visual studio command line and use ''installutil /i ServiceName.exe'' to install the service (put the name of your exe file in place of ServiceName.exe).


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

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