title: Inheritance security rules violated while overriding member: 'Autofac.Integration.Mvc.AutofacDependencyResolver.GetService(System.Type)'
body: <p>I have a project that I pulled from github that I'm trying to get working locally. I built all of the projects in the solution, and everything is fine there. However, when I try to view the site, I get a runtime error. The event viewer is giving me this message:</p>
  
  <pre><code>Exception type: HttpException 
     Exception message: 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 overridden.
     at System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app)
     at System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers)
     at System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context)
     at System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context)
     at System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext)
  </code></pre>
  
  <p>I'm not sure how to fix this, I went to the file Global.asax.cs that it mentioned but line 24 looks like this:</p>
  
  <pre><code>ContainerConfig.RegisterContainer();
  </code></pre>
  
  <p>so that line has nothing to do with Autofac. I'm not sure what I need to change to resolve this.</p>