Author: zdunham | Posted on: 12/23/2009 10:51:52 AM | Views : 575

Hi all.
I have an application that I wrote in C# ASP.NET for my internal network that restarts services. Basically, there are check boxes for the services you want to restart and check boxes for the servers to restart them on. The program uses this input to generate a batch file and run it using System.Diagnostics.Process. The application works perfectly fine when I run it from my machine using the temporary server created by Visual Web Developer. When I moved it to the server it is going to run from it started getting permission denied for the "sc" command in the batch file.
I proceeded to use the identity tag from here. I put it inside the <System.Web> tag where I think it is supposed to go as it doesn't give me any errors.
<identity impersonate="true" userName="privelegeduser" password="whatever"/>
Obviously I've replaced the actual user name and password but the user is at domain admin privelege ...

Go to the complete details ...