Share via


Unknown error (0xfffffffe)

Question

Thursday, May 30, 2013 10:13 AM

 Hi,

I get the below error when a console exe tries to start another console exe.

Error:

Unknown error (0xfffffffe)
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start(ProcessStartInfo startInfo)

Code:

I use the below code to start another exe:

...

System.Diagnostics.Process.Start(<exepath>).

I couldn't reproduce this error and it happens rarely. Can you post your ideas to resolve this?

Thanks in advance.

Regards,

Udhay

All replies (7)

Thursday, May 30, 2013 10:25 AM

I think exe file path is wrong, try to verify the path again.

           Process pRC = new Process();
            pRC.StartInfo.FileName = openPath;
            pRC.Start();

Thanks & Regards, Syed Amjad, Sr. Silverlight/WPF Developer, yahoo : [email protected], skype : syedamjad.0786.


Thursday, May 30, 2013 10:39 AM | 1 vote

Hi Syed, I am confident that the exe file path is correct. Because this exe runs daily for more than 1 year and I am facing the issue for the first time. Thanks!


Thursday, May 30, 2013 12:16 PM | 1 vote

If so, did you check whether exe is working when you executed manually or else it might got corrupted.

i hope this will help you.

http://www.codeproject.com/Questions/198329/Process-start-method-cannot-start-a-exe-file-writt

Thanks & Regards, Syed Amjad, Sr. Silverlight/WPF Developer, yahoo : [email protected], skype : syedamjad.0786.


Thursday, May 30, 2013 1:04 PM

Yes, it works fine if the exe is run manually.


Friday, May 31, 2013 5:46 AM

Thanks for syed’s help

Hi Udhay,

Whether it is related to the permission like this thread “Starting process (one console application from another)”?

Reference:

How to start a console app in a new window, the parent's window, or no window

Best Regards,

Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.


Friday, May 31, 2013 9:13 AM

Hi,

I don't this so. Because it runs fine in most of the cases and it is runrning under admin ID which has full access.


Monday, June 3, 2013 10:11 AM

Hi Udhay,

To repro this issue, would you mind sharing us a simple sample? So we could make sure that whether it is related to the VS IDE or the project.

Please also attach your Visual Studio project, you can upload it to the sky drive, and then share the download link in your post.

If there's any concern, please feel free to let me know.

Best Regards,

Jack Zhai [MSFT]
MSDN Community Support | Feedback to us
Develop and promote your apps in Windows Store
Please remember to mark the replies as answers if they help and unmark them if they provide no help.