title: Solving Autofac issue Inheritance security rules violated while overriding member GetService
body: <p>I've got an ASP.NET MVC application using Autofac.</p>
  
  <p>I've added the appropriate packages via:</p>
  
  <pre><code>Install-Package Autofac
  Install-Package Autofac.Mvc4
  </code></pre>
  
  <p>When I ran the web application, this error was throw:</p>
  
  <blockquote>
    <p>Inheritance security rules violated while overriding member: 'Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(System.Type)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.</p>
  </blockquote>
  
  <p>How can this be solved?</p>