Re: FileLoadException when running app with Impersonate from network folder.
- From: jeanbdenis@xxxxxxxxx
- Date: 14 Mar 2006 06:12:41 -0800
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
.
- Follow-Ups:
- Re: FileLoadException when running app with Impersonate from network folder.
- From: johnvmc@xxxxxxxxx
- Re: FileLoadException when running app with Impersonate from network folder.
- References:
- FileLoadException when running app with Impersonate from network folder.
- From: Michael . Suarez
- Re: FileLoadException when running app with Impersonate from network folder.
- From: johnvmc@xxxxxxxxx
- FileLoadException when running app with Impersonate from network folder.
- Prev by Date: Re: FileLoadException when running app with Impersonate from network folder.
- Next by Date: Forms authentication failed for the request
- Previous by thread: Re: FileLoadException when running app with Impersonate from network folder.
- Next by thread: Re: FileLoadException when running app with Impersonate from network folder.
- Index(es):