title: IOwinContext context is null
body: <p>I have moved my mvc4 application into mvc5 by creating a new application and copying the code in - to avoid any conflicts while updating the DLL's</p>
  
  <p>When I debug my new solution, no pages can be loaded as the built in IdentityConfig.cs is throwing a nullreferenceexception on the IOwinContext.</p>
  
  <p>the code is breaking at the following line</p>
  
  <pre><code> var manager = new ApplicationUserManager(new UserStore&lt;ApplicationUser&gt;(context.Get&lt;ApplicationDbContext&gt;()));
  </code></pre>
  
  <p>As this is practically OOTB mvc5, and I haven't worked with it before, I am not sure why it is throwing null.
  any help?</p>