|
-
April 19th, 2011, 03:50 PM
#1
Create / Remove applications on remote IIS server
Hello,
I simply want to create and remove applications on remote IIS servers. The only way I have found to do this is to use
System.Diagnostics.ProcessStartInfo procStartInfo =
new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = procStartInfo;
proc.Start();
and insert a command that calls to psexec.exe which then calls APPCMD on the server. It is a mess, and it only works if my application is run from the local hard drive.
If someone runs my .exe from a network location the command never goes through. Also psexec requires a license agreement.
Is there any simpler way to administrate IIS servers in C# programs without the user needing to install the remote management consoles?
.net 4.0
Last edited by DeepThought; April 19th, 2011 at 05:17 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|