title: ASP.NET MVC 6 AspNet.Session Errors - Unable to resolve service for type?
body: <p>Alright, so recently I've been having a lot of trouble using the new Microsoft.AspNet.Session middleware for ASP.NET vNext (MVC 6). The error I'm getting, </p>
  
  <blockquote>
    <p>Unable to resolve service for type
    'Microsoft.Framework.OptionsModel.ConfigureOptions[Microsoft.AspNet.Session.SessionOptions]
    while attempting to activate
    'Microsoft.AspNet.Session.SessionMiddleware'</p>
  </blockquote>
  
  <p>occurs on all pages regardless of session use. The DNVM version I'm using is Beta5 x86 and all the packages in the project are Beta5 as well. The project itself is an attempt at porting an ASP.NET MVC 5 project to MVC 6 without much luck. Below are links to resources that may be important: </p>
  
  <ul>
  <li>Project.json: <a href="http://tinyurl.com/project-json" rel="noreferrer">http://tinyurl.com/project-json</a></li>
  <li>Startup.cs: <a href="http://tinyurl.com/startup-cs" rel="noreferrer">http://tinyurl.com/startup-cs</a></li>
  </ul>
  
  <p>It seems to be a problem with my configuration but I'm not sure what to do about it... Pls send help Dx</p>