TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mann Maurya
NA
104
9.7k
Is there any way to run publish file as administrator.
Nov 30 2017 5:18 AM
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!
Reply
Answers (
4
)
How to Record video using Asp.net Web API
how to make a treeview like the ones in Windows folder explorer in c#