I'm trying to launch a WPF .exe from my VisualWebGUI (winforms on the web basically) application. Everything works fine when I run it through VS2010. However when I deploy the site to IIS it does launch the .exe (I can see it writing out to a log file) but it does not show me the GUI of the WPF app. I can see the process running in Task Manager too! Very simple stuff really, just passing one arguement:
Process p = new Process();
p.StartInfo.FileName = Security.ExePath
p.StartInfo.Arguments = ID
p.Start();
I've tried fiddling around with the different startinfo parameters but to no avail, am I missing something?
That's may because the application is started under the AppPool identity (e.g. ApplicationPoolIdentity). Try to set the Identity under "Advanced Settings" for the AppPool to the User that is logged in and should see the application.