February 12th, 2018 • By Jason Skowronski
TABLE OF CONTENTS
Rollbar is happy to announce our official .NET error monitoring SDK. This new .NET SDK is more rreliable, supports all of the popular .NET platforms (NET Standard, .NET Framework, .NET Core, ASP.NET MVC, UWP, Mono, Xamarin), easy to configure, multithreading friendly, and more.
Rollbar helps you monitor errors in production applications. It provides you with a live error feed from your applications, including complete stack traces and contextual data to debug errors quickly. It also lets you easily understand your user experience by tracking who is affected by each error. Check out our features page to learn more about how it can help you.
.NET error monitoring, as seen in Rollbar
The public API of our notifier v1 is not backward compatible with the pre-v1 releases. However, the conversion/upgrade process is very straightforward by using find-and-replace tools across your code base.
You should change your config from the old version:
Rollbar.Init(new RollbarConfig("POST_SERVER_ITEM_ACCESS_TOKEN"));
to
RollbarLocator.RollbarInstance
.Configure(new RollbarConfig("POST_SERVER_ITEM_ACCESS_TOKEN") { Environment = "test" };
Additionally, anywhere in your code that you were sending error reports via
Rollbar.Report(new Exception("trying out an error", new NullReferenceException()));
Rollbar.Report("basic info log example.");
Will need to be replaced with something like this:
RollbarLocator.RollbarInstance.Error(new Exception("trying out an error", new NullReferenceException()));
RollbarLocator.RollbarInstance.Info("basic info log example.");
Learn more in our documentation for .NET.
If you haven’t already, sign up for a 14-day free trial of Rollbar and stop flying blind in production.