shellexecute - How to launch a console application from an IIS based web service, and have it visible while processing? -
i'm trying launch console app iis based web service, not visible on server.
code far is:
string downloaderpath = configurationmanager.appsettings["downloaderexepath"]; system.diagnostics.processstartinfo si = new system.diagnostics.processstartinfo(); si.windowstyle = system.diagnostics.processwindowstyle.normal; si.filename = downloaderpath; si.useshellexecute = true; //false doesn't make difference system.diagnostics.process.start(si);
the process fires, errors. have visible on screen, possible?
i don't think there in .net bcl allow so, if @ possible.
you need start application in current 'interactive' user session. when starting app webservice, running in session of iis (as service).
perhaps looking @ tools psexec might shed light on how working.
alternatively, log errors file and/or attempt hook debugger iis process (w3wp.exe)
Comments
Post a Comment