Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MVC5, WebAPI2 and AutoFac not working. All Nuget packages updated

I've updated all of the nuget packages in my project, as well as the AutoFac MVC5 Integration package (removed MVC4 one) and still no dice.

Inheritance security rules violated while overriding member: 'Autofac.Integration.WebApi.AutofacWebApiDependencyResolver.BeginScope()'. Security accessibility of the overriding method must match the security accessibility of the method being overriden.

like image 517
Shane Avatar asked Oct 22 '13 01:10

Shane


1 Answers

The package you need can be found by searching for "autofac webapi2" on Nuget.
It is called Autofac ASP.NET WebApi 2 Integration.

like image 120
Alex Meyer-Gleaves Avatar answered Nov 07 '22 22:11

Alex Meyer-Gleaves