P
Phillip N Rounds
What I would like to do is to have a console application on my server
started when a user performs a specific action on a web form. Specifically,
MyConsoleApp overwrites an existing file with updated info.
MyConsoleApp.exe works just fine and I believe the codewhich calls the
MyConsoleApp.exe (below) is correct. This process fails, with an error:
Access is denied
User Account MyComputer\ASPNET
This makes sense, my computer shouldn't permit an unknown user to write to
my disk. Do I have to create a user account ASPNET and give write
permission in the appropriate directory to this user?
Is trying to do this such a horrendous idea that I should find a different
approach?
Thanks
Phil
I have the following in an appropriate place in my web form:
System.Diagnostics.ProcessStartInfo ProcInfo = new
ProcessStartInfo("c:\\MyConsoleApp.exe", null );
ProcInfo.UseShellExecute = true;
System.Diagnostics.Process Proc = new Process();
Proc.StartInfo = ProcInfo;
Proc.Start();
started when a user performs a specific action on a web form. Specifically,
MyConsoleApp overwrites an existing file with updated info.
MyConsoleApp.exe works just fine and I believe the codewhich calls the
MyConsoleApp.exe (below) is correct. This process fails, with an error:
Access is denied
User Account MyComputer\ASPNET
This makes sense, my computer shouldn't permit an unknown user to write to
my disk. Do I have to create a user account ASPNET and give write
permission in the appropriate directory to this user?
Is trying to do this such a horrendous idea that I should find a different
approach?
Thanks
Phil
I have the following in an appropriate place in my web form:
System.Diagnostics.ProcessStartInfo ProcInfo = new
ProcessStartInfo("c:\\MyConsoleApp.exe", null );
ProcInfo.UseShellExecute = true;
System.Diagnostics.Process Proc = new Process();
Proc.StartInfo = ProcInfo;
Proc.Start();