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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
jeet pPosted May 26, 2009, 3:14 AM
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
Suchit KhannaPosted May 26, 2009, 2:08 AM
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.
Suchit KhannaPosted May 26, 2009, 2:06 AM
Or one more indirect way could be to check the System Logs if the utitlity threw some exception.
jeet pPosted May 26, 2009, 1:10 AM
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 KhannaPosted May 26, 2009, 12:19 AM