Click here to Skip to main content
15,916,846 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionDrawing in a PictureBox Pin
sergestusxx4-Jan-06 14:00
sergestusxx4-Jan-06 14:00 
AnswerRe: Drawing in a PictureBox Pin
Christian Graus4-Jan-06 14:41
protectorChristian Graus4-Jan-06 14:41 
QuestionCan't use web service Pin
sergestusxx4-Jan-06 6:46
sergestusxx4-Jan-06 6:46 
AnswerRe: Can't use web service Pin
VenkataRamana.Gali4-Jan-06 7:57
VenkataRamana.Gali4-Jan-06 7:57 
QuestionFree Visual Basic.NET videos Pin
DickInYaMum4-Jan-06 6:39
DickInYaMum4-Jan-06 6:39 
QuestionGiving Permissions to assembly Pin
TheDen4-Jan-06 1:01
TheDen4-Jan-06 1:01 
QuestionConvertStringToBSTR problem Pin
LiYS3-Jan-06 23:20
LiYS3-Jan-06 23:20 
QuestionStop IIS on remote system (Different machine) Pin
Vishal Modi3-Jan-06 20:03
Vishal Modi3-Jan-06 20:03 
Hi All,

From my system, I want to stop / start the IIS of different machine and that machine may be on different domain. I have written the following code, it works for my system and it does not work for othe system. It would be great help if you can give some idea.

private bool IISReset(bool start, string machineName)

{

string arguments = string.Empty;

if (start == true) arguments = machineName + " /start";

else arguments = machineName + " /stop";



try

{

//setting the password

System.Security.SecureString pw = new System.Security.SecureString();

char ch1 = 'm';

pw.AppendChar(ch1);

ch1 = 'd';

pw.AppendChar(ch1);

ch1 = 'm';

pw.AppendChar(ch1);

ch1 = 'f';

pw.AppendChar(ch1);

ch1 = 't';

pw.AppendChar(ch1);

ch1 = '@';

pw.AppendChar(ch1);

ch1 = '1';

pw.AppendChar(ch1);

ch1 = '2';

pw.AppendChar(ch1);

ch1 = '3';

pw.AppendChar(ch1);



string domain = "MyDomain";



Process process = Process.Start("iisreset", arguments, "maaz", pw, domain);





process.WaitForExit();





return true;

}

catch (System.Exception ex)

{

return false;

}

}


Vishal Modi
AnswerRe: Stop IIS on remote system (Different machine) Pin
RajibBasu5-Jan-06 22:28
RajibBasu5-Jan-06 22:28 
GeneralRe: Stop IIS on remote system (Different machine) Pin
Vishal Modi6-Jan-06 8:46
Vishal Modi6-Jan-06 8:46 
Questionultratoolbar Pin
elayath3-Jan-06 18:15
elayath3-Jan-06 18:15 
QuestionShorten a path using an ellipsis... Pin
Ray Cassick3-Jan-06 9:55
Ray Cassick3-Jan-06 9:55 
QuestionHow Disable EvenLog checking...? Pin
PhrankBooth3-Jan-06 9:23
PhrankBooth3-Jan-06 9:23 
AnswerRe: How Disable EvenLog checking...? Pin
VenkataRamana.Gali3-Jan-06 9:52
VenkataRamana.Gali3-Jan-06 9:52 
AnswerRe: How Disable EvenLog checking...? Pin
Dave Kreskowiak3-Jan-06 10:13
mveDave Kreskowiak3-Jan-06 10:13 
QuestionHow to create Managed Extensions Framework 1.1 assembly using VS2005 Pin
Adi Arbel3-Jan-06 6:35
Adi Arbel3-Jan-06 6:35 
AnswerRe: How to create Managed Extensions Framework 1.1 assembly using VS2005 Pin
TheGreatAndPowerfulOz5-Jan-06 15:11
TheGreatAndPowerfulOz5-Jan-06 15:11 
QuestionGDI+ unsharp DrawString Pin
Ifoko2-Jan-06 20:53
Ifoko2-Jan-06 20:53 
AnswerRe: GDI+ unsharp DrawString Pin
Rob Graham4-Jan-06 5:03
Rob Graham4-Jan-06 5:03 
GeneralRe: GDI+ unsharp DrawString Pin
Ifoko4-Jan-06 7:29
Ifoko4-Jan-06 7:29 
GeneralRe: GDI+ unsharp DrawString Pin
Rob Graham4-Jan-06 8:37
Rob Graham4-Jan-06 8:37 
GeneralRe: GDI+ unsharp DrawString Pin
Ifoko5-Jan-06 6:09
Ifoko5-Jan-06 6:09 
QuestionSupport for Agent Technology in .NET Framework Pin
ShaaaM2-Jan-06 10:41
ShaaaM2-Jan-06 10:41 
AnswerRe: Support for Agent Technology in .NET Framework Pin
Dave Kreskowiak2-Jan-06 15:17
mveDave Kreskowiak2-Jan-06 15:17 
QuestionRe: Support for Agent Technology in .NET Framework Pin
ShaaaM3-Jan-06 10:06
ShaaaM3-Jan-06 10:06 

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.