Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
Is there any way to run publish file as administrator.
Mann Maurya
Nov 30 2017 5:18 AM
193
Reply
I have develope a window service , To start and stop the service i am using folowing
code:-
public void StartService(string serviceName)
{
ServiceController service = new ServiceController(serviceName);
try
{
service.Stop();
Thread.Sleep(500);
service.Start();
Thread.Sleep(1500);
}
catch { }
}
When I use this code Running my visual studio as administrator it works fine .
but the code is not working on iis , Is there any way to open an iis application as administrator ,
For grammer Mistake Sorry.
Please Help, Thank you!
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
How to Record video using Asp.net Web API
how to make a treeview like the ones in Windows folder explorer in c#