Closed brunosfernandes closed 9 years ago
Works great for me as well, I ran into the same issue. Thank you so much for tracking this down! Do you know how to create a pull request for it?
It's done. Thanks for your feedback.
Is the nuget package not updated after this fix ?I get the same error after I downloaded the library from the nuget package manager
@goldytech Hey just replied to you on the other cache github. You'll need to go to the pull requests section and compile it from there. It hasn't been merged by the main developer for this yet :(.
I have a pull request in which fixes quite a few problems if you want to try it out.
You'll need to download the latest master, and then make those changes yourself, or download directly from my github fork here: https://github.com/mackayj/AspNetWebApi-OutputCache if you don't want to manually merge.
@filipw Is there a time frame for when you might be able to review the changes by @mackayj ?
closed by #138
Hello Filip, I have a controller GET action that returns IHttpResultAction decorated with CacheOutput attribute. When i try to execute the GET request i get the a System.NullReferenceException:
So i have grabbed your source code from github. The problem is the content negotiator result is null when the return type of the action is a IHttpActionResult. I have changed the GetExpectedMediaType in the CacheOutputAttribute class and it worked like a charm:
Please let me know i this is ok.
Regards, BrunoF