title: InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor'
body: <p>I started to convert my asp.net core RC1 project to RC2 and faced with problem that now <code>IHttpContextAccessor</code>does not resolved.</p>
  
  <p>For sake of simplicity I created new ASP.NET RC2 project using Visual Studio Template <code>ASP.NET Core Web Application (.Net Framework)</code>. Than I added constructor for HomeController which template created for me.</p>
  
  <pre><code>public HomeController(IHttpContextAccessor accessor)
  {
  }
  </code></pre>
  
  <p>And after I start application I receive next error:</p>
  
  <blockquote>
    <p>InvalidOperationException: Unable to resolve service for type 'Microsoft.AspNetCore.Http.IHttpContextAccessor' while attempting to activate 'TestNewCore.Controllers.HomeController'.
    в Microsoft.Extensions.Internal.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)</p>
  </blockquote>
  
  <p>In my real application I need to resolve <code>IHttpContextAccessor</code> in my own service class for getting access to <code>_contextAccessor.HttpContext.Authentication</code> and to <code>_contextAccessor.HttpContext.User</code>. Everething works fine in RC1. So how can it suppose to be in RC2?</p>