Closed mikemike396 closed 7 years ago
Try GoogleAnalyticsTracker.WebAPI2 package
I found out that this line is what is causing the crash. Any idea? If I remove this line it works fine, and if I comment the GoogleAnalytics decoration on this method it works fine.
HttpContext.Current.Request.ServerVariables["REMOTE_HOST"].ToString()
This line is nowhere in the codebase? Are you using the WebAPI2 package? Which version?
Getting the current error only under certain calls. WebAPI 2.0. Any thoughts?
{"Message":"An error has occurred.","ExceptionMessage":"Object reference not set to an instance of an object.","ExceptionType":"System.NullReferenceException","StackTrace":" at GoogleAnalyticsTracker.WebApi.AsyncActionFilterAttribute.d__1.MoveNext()"}