Net Error Reporting Framework
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring .net crash reporting developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question
C# Error Logging
x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them;
Windows Error Reporting
it only takes a minute: Sign up .NET Error Reporting Framework Client/Server? up vote 5 down vote favorite 2 Anyone knows of one? Preferred open source? Basically some framework that I can hook up that collects error information, forwards
Elmah
it to a central location via web service including collecting crash dump information (exception stak trace, but possibly some other files on the machine per my extension) and does some statistical analysis + the possibility to return user info to the user (workaround, bug ID if already registered etc.). .net error-reporting share|improve this question asked Jul 21 '10 at 8:37 TomTom 1 add a comment| 2 Answers 2 active oldest votes up vote 2 down vote There is an log4net Exception Handling Application Block provided by the Patterns & Practices team at Microsoft. That stuff is usually pretty good :) http://msdn.microsoft.com/en-us/library/ff650463.aspx You can combine this with the Logging Application Block to create your own error logging mechanisms via their provider scheme. One of your logging providers could connect to the web service you provide. Alternatively, and the way I've done it in the past is simply to serialize the resultant exception into an XML file on the client machine and inform them that an error report is available and to give it to their administrator. I've had a few of these come back from out in the wild, and most meant I could solve the problem - some were too finicky and not enough information was present in the exception. This could easily be adapted to post to a web service. In the code, you then only have the one location - your unhandled exception handler - that results in this error report. All handled exceptions can safely be assumed to be standard behaviour, assuming you don't swallow exceptions in code where they aren't really being handled. share|improve this answer edited Jul 26 '10 at 18:23 SqlRyan 19.6k2992164 answered Jul 21 '10 at 8:47 Adam Houldsworth 47.1k587141 add a comment| up vote 0 down vote This is not open source. But Red Gate generally do good products: SmartAssembly Automated Error Reporting is an exception handling mecha
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up .NET “Send error report to [me]” up vote 6 down vote favorite 3 If an exception propagates all the way up to the top of my application (which, http://stackoverflow.com/questions/3297500/net-error-reporting-framework-client-server of course, will never happen), I would like to offer the option of sending an error report to me before the program crashes. What I have in mind is wrapping everything in the Main function in a try-catch, and a little class that sends the stack trace and other information to my server. It sounds simple enough, but with something like this I am sure there are hurdles (such as security, future-proofing) that I haven't fully considered. http://stackoverflow.com/questions/1182957/net-send-error-report-to-me Is there an existing .NET library/project for this purpose? Or alternatively, does this sound like the right approach, simply catching all Exception in the application's entry point? .net exception error-handling error-reporting share|improve this question asked Jul 25 '09 at 20:23 James M. 2,23811529 You'd still have a problem catching exceptions thrown by other threads :) –cwap Jul 25 '09 at 20:25 And also there are uncatchable excpetions ; i.e. StackOverflowException ;) –Wilhelm Jul 25 '09 at 20:42 "If an exception propagates all the way up to the top of my application (which, of course, will never happen)..." You forgot to add a smiley face to let us know you're joking. :) It's not an exaggeration to say that all apps crash. –Curt Nichols Jul 25 '09 at 21:55 Wilhelm, StackOverflowException is quite catchable. It just doesn't get a stack trace. –Joshua Oct 1 '09 at 19:12 See this link [1]: stackoverflow.com/questions/49224/… –Ravi Patel Jun 11 '12 at 8:35 add a comment| 7 Answers 7 active oldest votes up vote 4 down vote accepted See this question on all the available logging frameworks in .NET, any of them should offer email notification. I consider it a best practice to have a top level exception handler that collects and logs data on uncaught exceptions. As Meeh mentions in his comment to
be down. Please try the request again. Your cache administrator is webmaster. Generated Fri, 21 Oct 2016 00:01:02 GMT by s_nt6 (squid/3.5.20)
360 games PC games Windows games Windows phone games Entertainment All Entertainment Movies & TV Music Business & Education Business Students & educators Developers Sale Sale Find a store Gift cards Products Software & services Windows Office Free downloads & security Internet Explorer Microsoft Edge Skype OneNote OneDrive Microsoft Health MSN Bing Microsoft Groove Microsoft Movies & TV Devices & Xbox All Microsoft devices Microsoft Surface All Windows PCs & tablets PC accessories Xbox & games Microsoft Lumia All Windows phones Microsoft HoloLens For business Cloud Platform Microsoft Azure Microsoft Dynamics Windows for business Office for business Skype for business Surface for business Enterprise solutions Small business solutions Find a solutions provider Volume Licensing For developers & IT pros Develop Windows apps Microsoft Azure MSDN TechNet Visual Studio For students & educators Office for students OneNote in classroom Shop PCs & tablets perfect for students Microsoft in Education Support Sign in Cart Cart Javascript is disabled Please enable javascript and refresh the page Cookies are disabled Please enable cookies and refresh the page CV: {{ getCv() }} English (United States) Terms of use Privacy & cookies Trademarks © 2016 Microsoft