raygun4net icon indicating copy to clipboard operation
raygun4net copied to clipboard

HttpContext.Current is null when attaching RaygunWebApiClient

Open andrei-tofan opened this issue 3 years ago • 1 comments

When we've added RaygunWebApiClient to a project using both Web Forms and API programming models, we started to get exceptions that HttpContext.Current is null on file uploads.

The setup looked something like this:

GlobalConfiguration.Configure(config =>
{
        RaygunWebApiClient.Attach(config);
       // ...
}

Any ideas why this may happen?

andrei-tofan avatar May 21 '21 07:05 andrei-tofan

My team and I are having the same problem in the same scenario :/

abnercbalmeida avatar Jun 04 '21 18:06 abnercbalmeida

This should no longer be a problem, the client used to require the context to be set on a request by request basis but now thats encapsulated into the client itself.

phillip-haydon avatar Feb 27 '24 23:02 phillip-haydon