My .Net-Windows-Forms-Application is running impersonated as another user. The program starts another .net-exe which instantiates from an interop-assembly. The external program crashes when trying to instantiate from the interop assembly. If I start the external exe per Shift-RightClick-RunAsOtherUser and put in the same login-data as for impersonation, the program works fine.
Perhaps it has sth. to do with my process start call:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = Path.Combine(System.Windows.Forms.Application.StartupPath, exeFile);
startInfo.Arguments = arguments;
Process process = Process.Start(startInfo);
process.WaitForExit();
[EDIT]
Crash Details: On a vmWare and my dev machine: No exception-window, nothing, external application is executed and then disappears (I put some messageboxes in it to check).
On customers machine: Exception Window
Unknown error (0xffff...e)
Win32Exception
System
StartWithShellExecuteEx
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)