Siteifnity and raygun
newUser
Posted on
Jun 06 2014
Does raygun work with Siteifnity CMS? I am new to raygun and am having a difficult time to make work.
I added the NuGet package, then changed my web.config and I am getting no results. I am using Siteifnity 6.3, .Net Framework 4.
Thank you
Jason Fauchelle
Raygun
Posted on
Jun 10 2014
Hello, thanks for trying out Raygun!
Please double check the following in web.config:
The "configSections" tag should contain the following code:
<section name="RaygunSettings" type="Mindscape.Raygun4Net.RaygunSettings, Mindscape.Raygun4Net" requirePermission="false" />
Somewhere within the "configuration" tag, add RaygunSettings with your API key:
<RaygunSettings apikey="YOUR_APP_API_KEY" />
To enable the Raygun http module (which will automatically send uncaught exceptions), there are 2 possible places in web.config to add the module: system.web, and system.webserver. If you have only added the Raygun http module to one of these, either move it to the other tag, or add the raygun module to both tags which is what I usually do.
Within the "system.web" tag:
<httpModules>
<add name="RaygunErrorModule" type="Mindscape.Raygun4Net.RaygunHttpModule" />
</httpModules>
Within the "system.webserver" tag:
<modules runAllManagedModulesForAllRequests="true">
<add name="RaygunErrorModule" type="Mindscape.Raygun4Net.RaygunHttpModule" />
</modules>
If you've already done all this, or it still does not work, it may be that there is a global error filter catching all exceptions and preventing Raygun from ever hearing about them. To work around this, simply update to the latest NuGet package as we recently added a work around for this which will 'just work' without any additional changes to your application.
If it still isn't working, please let me know.
Hope this solves the issue!
-Jason Fauchelle