Over the weekend I finished upgrading the initial parts of the Chlodny Web Api project along with the past blog post of this series. This post will go over the process I needed to do in order to upgrade from Web Api Beta to Web Api RC.
First issue I ran into was that the Nuget packages did not upgrade from Beta to RC. I found many different ways online to resolve this issue. In the end I found it the easiest to do the following.
- Open the packages folder and delete everything.
- Start in the Data Access project and upgrade the package.
The next thing I ran into for an error was that generic HttpResponseMessage’s were removed. I personally think the new format is a nice change.
The old format looked something like this:
The new format should look something similar to this:
The final upgrade issue I ran into was the removal of GetUserPrincipal. It was changed to System.Threading.Thread.CurrentPrincipal.Identity.
Note: As Larry pointed out in the comments his is also exposed to the APIController and is accessible by this.User.Identity