Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a .Net API for Windows Error Reporting

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.

like image 233
urig Avatar asked Jan 17 '10 21:01

urig


People also ask

How do I access Windows problem reporting?

You can open the Run dialog box with the Windows Key + R keyboard combination. Enter services. msc to open Services. Find Windows Error Reporting Service and then right-click or tap-and-hold on that entry from the list.

What are Windows Error Reporting files?

WER stands for Windows Error Reporting (WER). Windows Error Reporting collects and offers to send post-error debug information (a memory dump), using the Internet, to the developer of an application that crashes or stops responding on a user's desktop. No data is sent without the user's consent.


2 Answers

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

Developers can register with Windows Quality Online Services to get information about the problems customers are experiencing with their applications and help customers fix these problems. Developers can also use Application Recovery and Restart to ensure that customers do not lose data when their application crashes and allow users to quickly return to their tasks.

I'm sure you could use interop to call the WER api's, if you want to generate a report without crashing.

like image 124
John Knoeller Avatar answered Sep 23 '22 13:09

John Knoeller


The WER team have a project on Codeplex; there's a managed Services DLL downloadable from http://www.codeplex.com/wer/Release/ProjectReleases.aspx?ReleaseId=12825

like image 35
Mark Rendle Avatar answered Sep 22 '22 13:09

Mark Rendle