Cannot Start Process in VM Role
-
Saturday, April 21, 2012 4:44 PM
I have an application that runs in the VM Role. The application, which is run as an Administrator calls Process.Start and gets an exception every time. The exception is
Unknown error (0xfffffffe)
This works completely fine when the VM is hosted on my local machine. I can also RDP into the machine and start processes manually or in a command prompt with no problem.
- Edited by Kayhustle11 Saturday, April 21, 2012 4:45 PM
All Replies
-
Sunday, April 22, 2012 4:16 PMModerator
Hello,
I suggest you provide stack or exception message about that Unknow error.
Check this link for more details about your problem:
http://sajojacob.com/blog/tag/vm-role/
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
-
Monday, April 23, 2012 3:19 PMHere is the stack trace:
4/23/2012 10:17:00 AM [ProcessActivator] []: System.ComponentModel.Win32Exception (0x80004005): Unknown error (0xfffffffe)
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(String fileName)
at OLII.Apps.Services.ProcessesActivation.ProcessActivationService.StartProcess(String processName)
The process that is trying to start another process is started via a batch file which is ran in the Task Scheduler as an Administrator. When I start the process that is trying to start the other process manually, it works without error.- Edited by Kayhustle11 Monday, April 23, 2012 4:09 PM
-
Tuesday, April 24, 2012 2:36 AMModerator
Hi,
You mentioned that this task works fine on cloud (via RDP) and local manually, and has Administrator permission, i think this problem should be Task Scheduler issue, does your task scheduler "run with highest privileges" property is checked? Or you can find more exception about this error in Windows Event logs in VM via RDP.
The error code 0x80004005, i find most similar error occured by "Can not find the file or assembly", could you make sure that your files or assemblies path is correct in VM?
Another workaround for this issue is that try to use other ways to start your process to see if has the same exception, for example, use Windows Service or background thread to start the process every 5 mins.
Hope this helps.
Please mark the replies as answers if they help or unmark if not. If you have any feedback about my replies, please contact msdnmg@microsoft.com Microsoft One Code Framework
- Marked As Answer by Arwind - MSFTModerator Friday, April 27, 2012 10:58 AM

