Upgrading asp.net MVC from 5.0.0-beta2 to 5.0.0-rc1

Last night I decided to try and apply SignalR to my application, but because I use MVC 5, I had to use beta 2.0 SignalR.

And oh boy, what time. Last night, Microsoft also decided to release rc1 for all of its mvc 5-related packages, and the update broke several things - mainly in the account controller, which is in the beta2 template.

public AccountController() { IdentityStore = new IdentityStoreManager(); AuthenticationManager = new IdentityAuthenticationManager(IdentityStore); } public AccountController(IdentityStoreManager storeManager, IdentityAuthenticationManager authManager) { IdentityStore = storeManager; AuthenticationManager = authManager; } public IdentityStoreManager IdentityStore { get; private set; } public IdentityAuthenticationManager AuthenticationManager { get; private set; } 

IdentityStoreManager and IdentityAuthenticationManager no longer recognized.

Has anyone successfully migrated to rc1? I can not find documentation or updated templates from MS.

+5
c # asp.net-mvc asp.net-mvc-5 asp.net-identity
Aug 24 '13 at 9:17
source share
3 answers

Update the following nuget packages:

  • Microsoft ASP.NET Identity EntityFramework version = "1.0.0-rc1"
  • Microsoft.Owin.Security version = "2.0.0-rc1"
  • Microsoft.Owin.Security.OAuth version = "2.0.0-rc1"

Get the following data:

  • Microsoft.AspNet.Identity.Owin version = "1.0.0-rc1"
  • Microsoft.Owin.Host.SystemWeb version = "2.0.0-rc1"

Then there will still be many errors in your AccountController.cs file. But now you have classes in your project to fix them, or you can get my AccountController.cs file, which is fixed, well, it compiles and the application starts, but there is a place (commented todo :) that I'm not sure yet .

You can download my AccountController.cs file from my sample project on github: https://github.com/onybo/Asp.Net-Identity-RC1-sample-app

+7
Aug 25 '13 at 7:03 on
source share

IdentityStoreManager now called IdentityStore

IdentityAuthenticationManager now IdentityManager

+4
Aug 24 '13 at 13:17
source share

These classes have moved types. See the following commit for more information on how to make AccountController work.

https://github.com/rustd/AspnetIdentitySample/commit/b09479a9e5c2d4ff16c459ce0e4105c5ac5302f4

+3
Aug 25 '13 at 21:00
source share



All Articles