Mark,
What are the permission errors that you get? Even if you used a
COM
object, you would still be running under the user that the page is
being processed under (unless you used a COM+ object, in which case
you can set the user that the object runs under).
How are you setting the user that the page is being processed
under?
Here is the error message:
"Error saving file: System.ComponentModel.Win32Exception: Access is
denied at
System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo
startInfo) at System.Diagnostics.Process.Start() at
System.Diagnostics.Process.Start(ProcessStartInfo startInfo) at
System.Diagnostics.Process.Start(String fileName, String arguments) at
converter.WebForm1.DoConvert(String sWorkingDir, String sFile) in
c:\inetpub\wwwroot\converter\default.aspx.cs:line 33 at
ASP.default_aspx.Button1_Click(Object Source, EventArgs e) in
http://localhost/converter/default.aspx:line 33"
What I am doing is a two step process.
1) Upload an image file (.jpg). This works fine. The file is written
to the bin directory.
2) Run a command line argument on an executable that resides in the bin
directory that converts the jpg into a gif. This is where I get the
error. If I drop to a command line and test it the process runs fine.
I right clicked on the bin directory and gave full control to ASP.NET
Machine Account and IUSR Internet Guest Account.