Diagnosing an application spawned from an ASP.NET web application

J

James Tsao

I'm trying to run an external image processing application from a web
application. The function below works for a windows application but
when i try to call it from a web app, the image processing app
starts/stops (it pops up briefly in the task manager). i have no way
of knowing why it closed.

I've also tried running with psInfo.UseShellExecute = false, to no
avail. any help would be greatly appreciated.

public void Run()
{
string program = @"""D:\Program Files\WinImageProcessingApp.exe""";
string args = @"""-o1 option1 -o2 option2""";
ProcessStartInfo psInfo = new ProcessStartInfo(program,args);
Process process = Process.Start(psInfo);
process.WaitForExit();
}

thanks.
JT
 
B

bruce barker

most likely the app is trying to open a window, which is not allowed when
started from a service.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top