I'm having a problem running a client application on an Azure Worker Role.
To run it programatically, I try to use System.Diagnostic.Process() and CreateProcessWithLogonW() and CreateProcessAsUser() and always get faults with following error log:
Faulting application SumatraPDF.exe, version 2.1.1.0, time stamp 0x50671ddb,
faulting module USER32.dll, version 6.0.6002.18541, time stamp 0x4ec3e39f,
exception code 0xc0000142, fault offset 0x0006f52f, process id 0x84c,
application start time 0x01cdaec9ec56418e.
Is there some way to programmatically run a client application hosted on a Worker Role? If I remote into the VM and run the application with the local command prompt it runs without errors.
Try running the same from an elevated Task instead. I've seen marked differences in performance in processes that are created with Process.Start during the worker role lifecycle and a Task. It also looks like a GDI issue in your response so it may be worth sharing your ProcessInfo.
User contributions licensed under CC BY-SA 3.0