Does Raygun work with mono c#?

mikew909

Posted on
Mar 24 2015

I have a simple "hello raygun" message in a c# console app that logs to RG when run from my local dev machine (on windows). when i deploy the code to a remote mono/ubuntu server the app works however raygun doesnt log the message. Anyone have any ideas on why this may be?

Thanks


Callum

Posted on
Mar 25 2015

Hi Mike,

I've added this to my list to investigate later this week - will let you know the results.

Regards,

Callum Gavin
Mindscape Limited


Callum

Posted on
Mar 26 2015

It appears we don't support this out of the box currently - several of the subprojects use Microsoft.VisualBasic.Devices which isn't present in the Mono runtime (at least for the version I tested against). In this case it may crash at runtime when trying to instantiate a RaygunClient. Assuming you got past this by sanitizing the reference in RaygunEnvironmentBuilder.cs (specifically lines 51-68), Mono by default doesn't appear to include the root CA cert needed for the HTTPS connection. As such you might see a TlsException being raised when it attempts to post the payload to the Raygun API. Ways to fix this are listed at http://www.mono-project.com/docs/faq/security/ (using the mozroots tool to install the default Mozilla root certificates on the server).

If fixing the certs does get it working we can look at creating a dedicated Mono-compatible project for you.


Reply