G
Guest
Hello,
I am in serious need of help. I have an ASP.NET application written in C#.
I have a page that processes a file on the web server. The page uses a class
I created and stored in the AppCode directory. In the class method I am
trying to run a program on my web server that will convert the file for me.
Here is a snipit of code:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = sDir + "App_LocalResources\\FileConverter.exe";
proc.StartInfo.Arguments = "-i " + filename + "." + extension;
proc.EnableRaisingEvents = false;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.Start();
proc.WaitForExit(99999999);
if (!proc.HasExited)
proc.Kill();
proc.Close();
The problem is that as soon as my code gets to proc.Start I get an 'Access
is Denied' error. I have tried everything I could think of or find on the
web. Could someone please help me out with this?
Thank you,
Michael
I am in serious need of help. I have an ASP.NET application written in C#.
I have a page that processes a file on the web server. The page uses a class
I created and stored in the AppCode directory. In the class method I am
trying to run a program on my web server that will convert the file for me.
Here is a snipit of code:
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = sDir + "App_LocalResources\\FileConverter.exe";
proc.StartInfo.Arguments = "-i " + filename + "." + extension;
proc.EnableRaisingEvents = false;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.RedirectStandardOutput = true;
proc.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
proc.Start();
proc.WaitForExit(99999999);
if (!proc.HasExited)
proc.Kill();
proc.Close();
The problem is that as soon as my code gets to proc.Start I get an 'Access
is Denied' error. I have tried everything I could think of or find on the
web. Could someone please help me out with this?
Thank you,
Michael