RaygunClient.Send() throws an exception

nlewis

Posted on
Apr 01 2015

Caught this in my server's text file logs:

System.ArgumentException: Value does not fall within the expected range. at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Web.Hosting.IIS7WorkerRequest.GetServerVariableInternal(String name) at System.Web.HttpWorkerRequest.IsLocal() at Mindscape.Raygun4Net.RaygunClient.CanSend(Exception exception) at Mindscape.Raygun4Net.RaygunClient.Send(Exception exception, IList`1 tags, IDictionary userCustomData, RaygunIdentifierMessage userInfo) at Mindscape.Raygun4Net.RaygunClient.Send(Exception exception) at MonsciergeServiceUtilities.Log4NetErrorHandler.HandleError(Exception error)


Jason Fauchelle

Raygun

Posted on
Apr 01 2015

Thanks for reporting this.

I've noted this down to fix in the next version. Though, if the IsLocal property on the request is going to crash, then fixing this will mean the ExcludeErrorsFromLocal option will not work in this scenario. I'll let you know when the next version is available.

-Jason Fauchelle


Jason Fauchelle

Raygun

Posted on
Apr 17 2015

Hi,

Raygun4Net v5.0.1 has just been released which includes a fix for this issue. As I was unable to reproduce the issue, please let me know if the problem remains along with any further information that may help to reproduce it.

-Jason Fauchelle


Reply