Hi all,
In my windows application written in C#, I am calling one windows utility...but it is likely to fail the execution of that windows utility execution...How do I log the error of that utility into my C# application?
regards
Jeet
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Suchit KhannaRank #1,100 · 1.7K reputationPosted May 25, 2009, 8:19 PM EDT
jeet p16 reputationPosted May 25, 2009, 9:10 PM EDT
but the problem is that error occurred by windows utility is not being trapped..... and which is right too....as error is not from my application...My application is just calling that utility to execute.
e.g. my utility requires network connection, but if the connection is not there - utility will get failed...but My application does not know about that...This is just one possibility of an error...
Thanks
Jeet
Suchit KhannaRank #1,100 · 1.7K reputationPosted May 25, 2009, 10:06 PM EDT
Or one more indirect way could be to check the System Logs if the utitlity threw some exception.
Suchit KhannaRank #1,100 · 1.7K reputationPosted May 25, 2009, 10:08 PM EDT
Or one more indirect way could be to check the System Logs if the utitlity threw some exception, if it logs its error in EventViewer.
jeet p16 reputationPosted May 25, 2009, 11:14 PM EDT
Thanks for your interest..well, going specific..
I am using CSVDE.exe utility of windows - that lists the Active Directory records in to CSV file...but sometimes in absence of network or due to some other problems it is possible that file does not create by this utility..
I am executeing this CSVDE.exe from my C# windows application.
I wish this digs some more ground for you!
thanks
Jeet