1
UserStore<IdentityUser> userStore = new UserStore<IdentityUser>();
userStore.Context.Database.Connection.ConnectionString =
    System.Configuration.ConfigurationManager.
    ConnectionStrings["CandleDBConnectionString"].ConnectionString;

the issue I'm currently experiencing is that i keep getting a error in line 2, the error is:

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Joel Hogg
  • 11
  • 1
  • 1
    `Context`, `Database` and/or `Connection` is null. – Robert Harvey May 21 '15 at 23:54
  • Almost all cases of `NullReferenceException` are the same. Please see "[What is a NullReferenceException and how do I fix it?](http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-in-net)" for some hints. – John Saunders May 21 '15 at 23:55

0 Answers0