Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Unknown Error on Process.start

Posted on 2006-06-28
Medium Priority
Last Modified: 2008-02-01
I am getting an Unknown Error message when calling process.start.  My code is below.  I have copy and pasted the filename into the Run prompt and IE does launch so I know that is valid, I have also pasted from the clipboard into the address bar and the URL is valid.

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.EnableRaisingEvents = false;
process.StartInfo.FileName = @"C:\Program Files\Internet Explorer\iexplore.exe";
process.StartInfo.Arguments = url;

I do have a try/catch around the code, and there is no inner exception.  The error message I get is "Unknown error 0xffffffff".  This is running in a desktop app, and used to work.  I don't know what has changed on the computer in the last 3 months to make it not work, but the code did not change.
Question by:SkipFire
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
LVL 48

Accepted Solution

AlexFM earned 800 total points
ID: 17001234
Try to run directly URL:
process.StartInfo.FileName = url;

This will work like ShellExecute, running program associated with file name. For URL, this is Windows Explorer.

Assisted Solution

Shakti109 earned 1200 total points
ID: 17019867

Have you applied any service patches or operating system updates to the system(s)?

A change in security (or tightening of security policy) will definately affect your ability to do external program launches.

In effect, you are doing what a web pop-up does.
To test and see if it is limited to internet explorer you could try :

System.Diagnostics.Process process = new System.Diagnostics.Process();
process.EnableRaisingEvents = false;
process.StartInfo.FileName = @"C:\windows\system32\calc.exe";

If calc.exe (the system calculator) works and the call to internet explorer does not, you may have a problem with the security settings.

If calc.exe does NOT work, there may be a system policy preventing launching of applications BY an application without some kind of impersonation or security rights.

Author Comment

ID: 17043977
AlexFM - your suggestion did function, however it pops up in the already open window, I need it to open into a new window which is what happens when you do "iexplore <url>".
Shakti109 - I still get unknown error with calc.  How can I determine if it is a policy change?  I have not changed the policy on my machine, but the domain admins could have pushed out a new policy to the domain.

Still need help on this one, but thanks for the help so far guys.
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!


Expert Comment

ID: 17087526

I have tried this (opening the calculator) under several user contexts on a test machine and am able to fire up the calculator process under all of them.

Hrm...When you say "unknown error", is that what the error text says?


Author Comment

ID: 17089450
The error text is unknown error.

Author Comment

ID: 17234248
The code is now executing without me having changed anything.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Simple Linear Regression

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question