Click here to Skip to main content
15,891,184 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 7:27
Yusuf26-Mar-09 7:27 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 7:58
Pankaj Saha26-Mar-09 7:58 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf26-Mar-09 8:36
Yusuf26-Mar-09 8:36 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha26-Mar-09 19:47
Pankaj Saha26-Mar-09 19:47 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf27-Mar-09 0:39
Yusuf27-Mar-09 0:39 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Pankaj Saha27-Mar-09 6:32
Pankaj Saha27-Mar-09 6:32 
GeneralRe: Not showing console application through the asp.net web service in windows 2003 Pin
Yusuf27-Mar-09 8:52
Yusuf27-Mar-09 8:52 
QuestionHow to be allowed to start/stop windows service via ASP.NET page Pin
Herman<T>.Instance26-Mar-09 4:32
Herman<T>.Instance26-Mar-09 4:32 
Hi,

I have a website with a Page that can start or stop a Windows Service. I get the error:
Cannot open Service Control Manager on computer 'NZDB-TST'. This operation might require other privileges.

My code:
private void RunAlongServices(String ServiceName)
{

    // Nog wel machinenaan aanpassen!!!
    ServiceController ctrl = new ServiceController(ServiceName, "NZDB-TST");

    if (ctrl.Status.Equals(ServiceControllerStatus.Stopped))
    {
        ctrl.Start();
    }
    else
    {
        ctrl.Stop();
    }
}


How to solve this issue, so the Windows service(s) can be started or stopped via de website?

In Word you can only store 2 bytes. That is why I use Writer.

AnswerRe: How to be allowed to start/stop windows service via ASP.NET page Pin
led mike26-Mar-09 5:04
led mike26-Mar-09 5:04 
AnswerRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Yusuf26-Mar-09 5:43
Yusuf26-Mar-09 5:43 
GeneralRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Herman<T>.Instance26-Mar-09 22:36
Herman<T>.Instance26-Mar-09 22:36 
GeneralRe: How to be allowed to start/stop windows service via ASP.NET page Pin
Yusuf27-Mar-09 0:49
Yusuf27-Mar-09 0:49 
Questionhow i get the ip address of client machine Pin
jayesh pune26-Mar-09 3:52
jayesh pune26-Mar-09 3:52 
AnswerRe: how i get the ip address of client machine Pin
David Mujica26-Mar-09 3:59
David Mujica26-Mar-09 3:59 
AnswerRe: how i get the ip address of client machine Pin
Peter Mühlhofer26-Mar-09 4:00
Peter Mühlhofer26-Mar-09 4:00 
AnswerRe: how i get the ip address of client machine Pin
Herman<T>.Instance26-Mar-09 4:35
Herman<T>.Instance26-Mar-09 4:35 
Questionpagination through dataset Pin
bikash pattanayak26-Mar-09 3:18
bikash pattanayak26-Mar-09 3:18 
AnswerRe: pagination through dataset Pin
Yusuf26-Mar-09 3:27
Yusuf26-Mar-09 3:27 
AnswerRe: pagination through dataset Pin
Vimalsoft(Pty) Ltd26-Mar-09 4:06
professionalVimalsoft(Pty) Ltd26-Mar-09 4:06 
AnswerRe: pagination through dataset Pin
Blue_Boy26-Mar-09 4:07
Blue_Boy26-Mar-09 4:07 
QuestionDrop down list selected value changed Pin
scar_face26-Mar-09 2:26
scar_face26-Mar-09 2:26 
AnswerRe: Drop down list selected value changed Pin
mr_muskurahat26-Mar-09 2:35
mr_muskurahat26-Mar-09 2:35 
AnswerRe: Drop down list selected value changed Pin
tech60326-Mar-09 14:08
tech60326-Mar-09 14:08 
AnswerRe: Drop down list selected value changed Pin
nish11126-Mar-09 21:05
nish11126-Mar-09 21:05 
Questionnot working in server Convert wmv file to flv file Pin
vnsraj26-Mar-09 1:55
vnsraj26-Mar-09 1:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.