Click here to Skip to main content
15,906,625 members
Home / Discussions / C#
   

C#

 
QuestionWCF basic samples Pin
George_George4-Aug-08 22:38
George_George4-Aug-08 22:38 
AnswerRe: WCF basic samples Pin
led mike5-Aug-08 5:12
led mike5-Aug-08 5:12 
GeneralRe: WCF basic samples Pin
George_George5-Aug-08 15:50
George_George5-Aug-08 15:50 
Questionuser control Pin
lankaudaranga4-Aug-08 22:24
lankaudaranga4-Aug-08 22:24 
AnswerRe: user control Pin
Syed Shahid Hussain4-Aug-08 22:40
Syed Shahid Hussain4-Aug-08 22:40 
GeneralRe: user control Pin
nelsonpaixao5-Aug-08 13:20
nelsonpaixao5-Aug-08 13:20 
GeneralRe: user control Pin
lankaudaranga5-Aug-08 19:27
lankaudaranga5-Aug-08 19:27 
Questioninvalid path using process.start method Pin
stephan_0074-Aug-08 21:56
stephan_0074-Aug-08 21:56 
hi everyone!

i do have a problem, which occours on some machines but not on every machine:

when using the process.start method, it throws the exception the path is invalid.

System.Diagnostics.Process process = Process.Start(startInfo);


the startinfo is
System.Diagnostics.ProcessStartInfo startInfo = new ProcessStartInfo();


then I add Arguments (startInfo.Arguments), a FileName (startInfo.Filename), set the UseShellExecute to true (startInfo.UseShellExecute = true) ,set the CreateNoWindow to true (startInfo.CreateNoWindow) to hide the window, then set the RedirectStandardOutput to false during one try and to true in another try (startInfo.RedirectStandardOutput = false or true) and then I reset the UseShellExecute to false (startInfo.UseShellExecute = false).
Finally I invoke the methode but it throws the exception described above.

Does anyone of you have an idea? i checked all the paths and they are correct (meaning those I used during assigning the parameters).

thanks.

Stephan.
AnswerRe: invalid path using process.start method Pin
Mogaambo4-Aug-08 22:08
Mogaambo4-Aug-08 22:08 
GeneralRe: invalid path using process.start method Pin
stephan_0074-Aug-08 23:26
stephan_0074-Aug-08 23:26 
GeneralRe: invalid path using process.start method Pin
Mogaambo4-Aug-08 23:46
Mogaambo4-Aug-08 23:46 
GeneralRe: invalid path using process.start method Pin
stephan_0075-Aug-08 1:12
stephan_0075-Aug-08 1:12 
GeneralRe: invalid path using process.start method Pin
stephan_0075-Aug-08 2:41
stephan_0075-Aug-08 2:41 
GeneralRe: invalid path using process.start method Pin
stephan_0075-Aug-08 11:22
stephan_0075-Aug-08 11:22 
AnswerRe: invalid path using process.start method Pin
astanton19785-Aug-08 2:50
astanton19785-Aug-08 2:50 
QuestionWhy the error message like "Object reference not set to an instance" comes.. Pin
Samiullah4-Aug-08 21:46
Samiullah4-Aug-08 21:46 
AnswerRe: Why the error message like "Object reference not set to an instance" comes.. Pin
Mogaambo4-Aug-08 22:09
Mogaambo4-Aug-08 22:09 
GeneralRe: Why the error message like "Object reference not set to an instance" comes.. Pin
Samiullah4-Aug-08 22:17
Samiullah4-Aug-08 22:17 
GeneralRe: Why the error message like "Object reference not set to an instance" comes.. Pin
Vimalsoft(Pty) Ltd4-Aug-08 22:56
professionalVimalsoft(Pty) Ltd4-Aug-08 22:56 
GeneralRe: Why the error message like "Object reference not set to an instance" comes.. Pin
Samiullah5-Aug-08 1:14
Samiullah5-Aug-08 1:14 
GeneralRe: Why the error message like "Object reference not set to an instance" comes.. Pin
AtulRane5-Aug-08 1:23
AtulRane5-Aug-08 1:23 
Questionuser interacting windows forms Pin
prasadbuddhika4-Aug-08 21:30
prasadbuddhika4-Aug-08 21:30 
AnswerRe: user interacting windows forms Pin
Syed Shahid Hussain4-Aug-08 22:49
Syed Shahid Hussain4-Aug-08 22:49 
GeneralRe: user interacting windows forms Pin
prasadbuddhika6-Aug-08 21:56
prasadbuddhika6-Aug-08 21:56 
QuestionResizing TextBox while resizing window Pin
Admin8874-Aug-08 21:16
Admin8874-Aug-08 21:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.