I want to call an exe file from my asp.net application on server side. My app contain a GUI but I don't want to modify it , just launched it like a console app.
It's currently working on IIS EXPRESS( when I debug with VS ) but not working on IIS.
What I tried : - add repository of my exe to environnment path. - change user to administrator user - change user on IIS to be the same as IISEXPRESS ( same on pool application ) - add params CreateNoWindow = true LoadUserProfile = true on ProcessStartInfo Object - World Wide Web Publication service and management web service was set to : "Allow service to interact with desktop" - Launch a console app instead of my GUI exe from my website : it's working
Process.Start(@"myExe.exe"); ( the repo is added to environnement variable : work on iisesxpress)
return ExitCode = 0 on iis express ( success ) return ExitCode = -532462766 on iis ( fail)
I expect my website to correctly call my executable and return exitcode = 0.
Thanks everyone