Windows服务项目 [英] windows service project

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

问题描述

大家好,

我创建了一个Windows服务并将其安装在我的本地计算机上。然后我创建了一个Web应用程序到strat并从Web应用程序停止该Windows服务。它工作正常。现在我在我的本地IIS上部署了我的Web应用程序。现在,当我尝试从本地IIS启动/停止Windows服务时,它给出了一个错误,例如"无法在此计算机上打开Windows服务。"

帮助将不胜感激。
< br>谢谢。

Hi All,

I have created a windows sservice and installed it on my local machine.  Then I have created a web application to strat and stop that windows service from web application.  It works fine.  Now I deployed my web application on my local IIS.  And now when I try to start/stop windows servcie from local IIS,  It gives me an error like "can't open windows service on this machine."

Help will be appreciated.

Thanks.

推荐答案

没有更多信息,我猜你的Web应用程序没有足够的权限来启动/停止Windows服务。

您的网络服务必须冒充具有足够权限的用户。

Without more information, I woud guess that your web application does not have sufficient authority to start/stop windows services. 

Your web service is going to have to impersonate a user who does have sufficient authority.


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

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