Click here to Skip to main content
       

C#

 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h16-Feb-13 17:41 
GeneralRe: calling a method in c++ from c# PinmemberN a v a n e e t h17-Feb-13 5:02 
GeneralRe: calling a method in c++ from c# Pinmemberbonosa13-Feb-13 6:48 
QuestionDynamic Form Creation/Layout PinmemberMatt U.12-Feb-13 4:21 
AnswerRe: Dynamic Form Creation/Layout PinmemberOrjan Westin12-Feb-13 6:16 
GeneralRe: Dynamic Form Creation/Layout PinmemberMatt U.12-Feb-13 6:51 
AnswerRe: Dynamic Form Creation/Layout PinmemberPIEBALDconsult12-Feb-13 12:36 
QuestionException: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmemberNarVish12-Feb-13 1:18 
I used below code to start service.
var sc = new System.ServiceProcess.ServiceController("ELSRegressionService");
if (sc.Status.ToString().Equals("Stopped"))
   sc.Start();
 
Its working fine, when logged in with Administrator credentials. If I login with other user credentials, it throws exception, "Cannot open Servicexxx service on computer 'COMPUTER_NAME'"
I would like to ask for credentials before the user tries to start service. So please guide me to check for credentials to start windows service programmatically. Thanks in advance
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmemberN a v a n e e t h12-Feb-13 1:36 
AnswerRe: Exception: Cannot open Servicexxx service on computer 'COMPUTER_NAME' PinmvpDave Kreskowiak12-Feb-13 2:05 
QuestionHow can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pinmembersusanna.floora11-Feb-13 22:50 
AnswerRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. PinmvpRichard MacCutchan12-Feb-13 0:27 
GeneralRe: How can I allow selected rows in a DataGridView (DGV) to be moved up or down in a button click. Pinmembersusanna.floora12-Feb-13 0:56 
Questioncontrol robots with c# !? Pinmembersource.compiler11-Feb-13 21:47 
AnswerRe: control robots with c# !? PinprotectorPete O'Hanlon11-Feb-13 22:11 
AnswerRe: control robots with c# !? PinmemberJibesh11-Feb-13 22:19 
Questiongame with Object-oriented programming [modified] Pinmembersaber_ershadi11-Feb-13 21:22 
AnswerRe: game with Object-oriented programming PinmemberJibesh11-Feb-13 22:22 
GeneralRe: game with Object-oriented programming Pinmembersaber_ershadi11-Feb-13 23:55 
GeneralRe: game with Object-oriented programming Pinmemberlukeer12-Feb-13 19:32 
AnswerRe: game with Object-oriented programming PinmvpRichard MacCutchan11-Feb-13 22:22 
AnswerRe: game with Object-oriented programming Pinmember ProgramFOX12-Feb-13 2:18 
QuestionHow to encryp video file and decrypt ? Pinmembersaber_ershadi11-Feb-13 6:10 
AnswerRe: How to encryp video file and decrypt ? PinmvpRichard MacCutchan11-Feb-13 6:31 
AnswerRe: How to encryp video file and decrypt ? PinmvpDave Kreskowiak11-Feb-13 7:29 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 26 Jul 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid