如何从asp.net MVC停止Windows服务 [英] How to stop a windows service from asp.net MVC
本文介绍了如何从asp.net MVC停止Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello Guys,
i有一个用于文件处理的Windows服务,它与我的asp.net mvc应用程序[3.0]有关,我需要从web UI启动和停止服务,我试过了我的身份验证[我的帐户是一个管理员帐户]得到了错误并尝试了身份,但错误仍然存在。
请帮助我,示例代码会很棒。
谢谢和问候
Tanmay Mandal
Hello Guys,
i have a windows services for file processing and it related to my asp.net mvc application [3.0], i need to start and stop service from web UI, i have tried it''s get errors and also tried identity along with my authentication [my account is an admin account] , but error remain.
Please help me on this , sample code will be great.
thanks and regards
Tanmay Mandal
推荐答案
看看这里:
http://weblogs.asp.net/kaushal/archive/2011/02/28/start-stop-window -service-from-asp-net-page.aspx [ ^ ]
http://forums.asp。 net / t / 1062574.aspx / 1 [ ^ ]
HI,
查看更多可能对您有帮助的链接。
如何从ASP.NET应用程序启动/停止Windows服务 - 安全问题
从Windows 7上的asp.net应用程序停止Windows服务
如何到起动或 - 停止-a-windows-service-using-C-Sharp
如何停止Windows服务C#
谢谢
Check out some more links these may help you too.
How to Start/Stop a Windows Service from an ASP.NET app - Security issues
Stopping windows service from asp.net application on Windows 7
how-to-start-or-stop-a-windows-service-using-C-Sharp
How to stop Windows service C#
Thanks
这篇关于如何从asp.net MVC停止Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文