Re: FileLoadException when running app with Impersonate from network folder.



Hey John,
I know this may be a little off topic but it seems that you know a
lot about security issues. I am having the strangest security problem
executing a batch file as an impersonated account. the code works
great under the ASPNET account. In a nutshell the code does the
following. 1 - create a batch file on the fly. (that works) then
execute the batch file. under the aspnet account it gets executed.
with the impersonated account it does not. I gave full right to the
impersonated account and nothing seems to work.

below is a code sniplet. can you help?

System.Diagnostics.Process p = new Process();
p.StartInfo.RedirectStandardOutput=false;
p.StartInfo.FileName = p_DecryptSourcePath+"gpg_run.bat";
p.StartInfo.UseShellExecute = false;
p.StartInfo.WorkingDirectory = p_DecryptSourcePath;
p.StartInfo.RedirectStandardError = true;
p.Start();
p.WaitForExit();
String str = p.StandardError.ReadToEnd();
p.Dispose();
regards
jd

.