Raygun and WebApi NuGet package 4.0.20710.0 results in build error
lancesh
Posted on
May 08 2015
When attempting to build my MVC 4 / Web API app after getting the latest Raygun4Net.WebApi nuget package (5.0.1) I get the compile error:
Assembly 'Mindscape.Raygun4Net.WebApi, Version=5.0.1.0, Culture=neutral, PublicKeyToken=null' uses 'System.Web.Http, Version=5.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' which has a higher version than referenced assembly 'System.Web.Http, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
So basically it looks to me like this package has a dependency on Web API 2, but the NuGet package doesn't seem to enforce this.
I'd rather not upgrade to Web API 2 at this time (time constraints). I tried to use the much older Mindscape.Raygun4Net 3.3.3 (pre splitting the packages) instead but it also had this dependency. I'm wondering if there is actually a package I can use with the version of Web API I am on? I'm hoping I don't need to dig into the dependencies of each historical version to check.
Thanks!
Jamie Penney
Posted on
May 11 2015
Hey,
From memory we've always relied on a minimum of WebApi 2.1 - there were some API additions that made it possible for us to capture exceptions more reliably - see here for more details http://www.asp.net/web-api/overview/releases/whats-new-in-aspnet-web-api-21#global-error. Even then we still have 4 different hooks for grabbing errors.
Sorry that's not quite the answer you were looking for.
Best regards, Jamie
lancesh
Posted on
May 11 2015
Thanks, I appreciate the response! I will see if I can hook into RaygunClient.SendInBackground() myself as a fix until I can get resource to upgrade to WebAPI 2.1.