Is there a .Net API for me to integrate Windows Error Reporting into my application?
I’m mostly interested in initiating error reports even for non-catastrophic errors occurring in my application and all I could find is the WIN32 API.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s not likely. WER isn’t meant to be used by applications, its something that a user can choose to enable, and when (s)he does, all application crashes are turned into Windows Error Reports and sent to a central server. It’s not something you turn on and off for individual applications. You generate an error report by crashing on a machine where the user has enabled WER.
Developers just have to register so that they can get the crash information on their products.
from http://msdn.microsoft.com/en-us/library/bb513641(VS.85).aspx
I’m sure you could use interop to call the WER api’s, if you want to generate a report without crashing.