Client library documentation
Coderr cannot discover errors nor collect information about unless one of Coderr's nuget packages are installed.
Core libraries takes care of reporting errors to the Coderr server. Uploads are queued to not affect your application. You do typically not need to installed them manually, they are included when you install one of the automation packages.
You can use them directly if you do not want to take advantage of our automation libraries.
Coderr can detect and report all unhandled exceptions (and other types of errors), along with information about why the exception was thrown. The automation libraries can also report other kinds of errors like validation failures or slow requests.
Once installed, Coderr will detect exceptions and collect information related to the error like HTTP requests, screenshots, view models and more. The goal is to make it easy to understand why an exception was thrown without manual handling.
|Coderr.client.aspnet||Generic ASP.NET library. Catches all unhandled exceptions and report them. Collects information about the HTTP request, session data etc. Allows you to easily create custom error pages for different HTTP error codes.|
|Coderr.client.aspnet.mvc5||ASP.NET MVC5 specific library. Does the same as the ASP.NET library, but do also collect specific MVC5 information like route data, ViewBag etc. Also allows you to customize your error pages by just creating them in the correct folder.|
|Coderr.client.aspnet.webapi2||ASP.NET WebApi2 integration. Tracks exceptions, failed authentication attempts, invalid POSTs and other cool stuff.|
|Coderr.client.aspnetcore.mvc||Core MVC integration. Tracks exceptions, failed authentication attempts, invalid POSTs and other cool stuff.|
|Coderr.client.wcf||Catches unhandled exceptions in the WCF pipeline. Collects WCF specific information like the inbound WCF message that failed to be processed.|
|Coderr.client.log4net||Reports all exceptions that you log, including the error message that you wrote.|
|Coderr.client.winforms||Reports all unhandled exceptions. Can take screen shots and collect the state of all open forms.|
|Coderr.client.WPF||Reports all unhandled exceptions. Can take screen-shots and collect the state of all open windows and includes the state of all your active view models.|
If your favorite library isn't listed, you can either create your own, request one in our forum or use the core library (
Coderr.client) to report exceptions.
Controlling report uploads
Reports that fail to upload are thrown away by default, to avoid interfering with your application.
To enable queued report uploads, use the following configuration line to activate it:
Err.Configuration.QueueReports = true;
When reports are being uploaded, the queue makes sure that your UI-unresponsiveness is unaffected.
There is more information about how to control the error report uploads in our customizing uploads guide.
Adding your own automated context providers
In your own application you probably have system specific information that you always want to include when errors are reported. For example
customerId or the logged-in user.
That can be done by creating a Context Data Provider
Building a new library
Learn how you can build your own client library for your own favorite .NET project.