500 Error in ASP .Net
svedula
Posted on
Feb 21 2014
I am new to Raygun. I followed the instructions listed for an ASP .Net app. When I restarted the app and tried hitting it, I get a 500 error. Am I missing anything?
Thanks for any assistance.
John-Daniel Trask
Raygun
Posted on
Feb 21 2014
I've let svedula know about this via email, but for those that come across this in future, this is related to a misconfigured web.config - here are some common pitfalls:
- You only need to include one
<add name="RaygunErrorModule ... />
element, either beneath<system.web><httpModules>
OR<system.webServer><modules>
, but not both. - The
<RaygunSettings apikey="apikey" />
element should be added beneath<configuration>
, not configsections. Only the<section name="RaygunSettings... />
element should be within configSections. - After completing this, you won't need to instantiate an instance of RaygunClient programmatically - this is handled for you.