I have a problem with my asp.net web service application. What I need to do is call a command line application with arguments, or to execute a batch(.bat) file from my ws application. The command line application is used to transfer a file. I've tested these with a Windows Forms app, and it works nicely when using System.Diagnostics.Process
class or CommandLineProcess class from http://www.codeguru.com/csharp/csharp/cs_misc/userinterface/article.php/c8503/
When I try to use these classes from an asp.net application, a new process is created in task manager, but nothing really happens.
I'm aware that this has something to do with user privileges and the fact that this all happens server side. I also have the following entry in web.config <identity impersonate="true" userName="myUsername" password="myPassword" />, where myUsername has Administrator privileges. I also checked that the application is run under myUsername(System.Security
Name = myUsername).
This is the code I use, which works from a Windows Forms App,
eName := 'C:\somewhere\myApp.exe';
uments := '-A -P 0 myFile.txt';
w := true;
te := true;
I've been struggling with this for quite long, so any help is greatly appreciated.