Nancy

Nancy.Raygun is an easy to install third party provider for Raygun that gives you fast access to Raygun crash reporting and error monitoring.

Installation

Using Nuget, install the Nancy.Raygun package.

PM> Install-Package Nancy.Raygun

In your Web.config file, find configSections and add the following entry:

<configSections>
<section name="RaygunSettings" type="Nancy.Raygun.RaygunSettings, Nancy.Raygun" />
</configSections>

Then reference it by adding the following line somewhere after the configSections tag. Your app API key is displayed when you create a new application in your Raygun account, or can be viewed in the application settings.

<RaygunSettings apikey="paste_your_api_key_here" />

If you're hosting on Azure/AppHabor then you may want to use appSettings instead so you can add the key via the portal/administration area.

To do this, add a the key nr.apiKey to your appSettings, with the value being your API key.

<appSettings>
<add key="nr.apiKey" value="paste_your_api_key_here" />
</appSettings>

Deploy Raygun into your production environment for best results, or raise a test exception. Once we detect your first error event, the Raygun app will automatically update.


The provider is open source and available at the Nancy.Raygun repository.

On this page: