本文介绍了无法从命令行或调试器启动服务..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是Windows服务的新手..



我的问题是我有在VB.NET中创建了一个Windows服务。当我安装并启动服务时它运行正常..



现在我尝试添加一个Schedule Task来根据预定的时间自动启动服务..当Scheduler尝试运行..我收到以下错误..



无法从命令行或调试器启动服务。必须首先使用installutil.exe安装Windows服务然后开始使用服务资源管理器,Windows服务管理工具或NET启动..



我无法找到解决方案。真正希望帮助我解决这个问题的人可以回复..



提前谢谢..

Hi,

I am new to windows service..

My problem is i have created a windows service in VB.NET. When I install and start the service it is running fine..

Now I try to add a Schedule Task to automatically start the service based on scheduled time.. When Scheduler tries to run.. I am receiving following error..

"Cannot start service from command line or debugger.A windows service must first be installed using installutil.exe and then started with service explorer, Windows services administrative tool or NET start..

I am unable to find solution. Those who really wish to help me for solving this problem can reply..

Thank you in advance..

推荐答案




这篇关于无法从命令行或调试器启动服务..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-28 11:58