Raygunclient.Send not sending message to Raygun on .NET application

MatiasT

Posted on
Dec 13 2016

I have the following code:

RaygunClient client = new RaygunClient("[KEY]");
client.Send(new Exception("Test " + DateTime.Now));
Console.WriteLine("message sent");
Console.Read();

This is the package I've installed:

    <package id="Mindscape.Raygun4Net"
                      version="5.4.0"
                      targetFramework="net451" />

The code above works from my local machine other machines, but it doesn't on one specific server. There is no firewall blocking raygun.

Is there a way to know if the Send method is throwing an error or having some problems? I find no explanation on why the method is not working.


Jason Fauchelle

Raygun

Posted on
Dec 16 2016

Hi Matias,

What you can do is use Settings.Settings.ThrowOnError = true to cause any exceptions that Raygun encounters to be surfaced into your code. This might reveal any issues with sending messages to Raygun. Another option, though not ideal, would be to grab the code from GitHub to debug what's going wrong around the Send method.

If that does not help, please let us know.

-Jason Fauchelle


Reply