Solving Autofac issue Inheritance security rules violated while overriding member GetService

后端 未结 1 846
我在风中等你
我在风中等你 2021-01-07 17:31

I\'ve got an ASP.NET MVC application using Autofac.

I\'ve added the appropriate packages via:

Install-Package Autofac
Install-Package Autofac.Mvc4


        
相关标签:
1条回答
  • 2021-01-07 17:52

    I had installed Autofac for MVC 4 when the project type was actually MVC 5.

    To solve this, I ran Uninstall-Package Autofac.Mvc4 and

    Install-Package Autofac.Mvc5
    
    0 讨论(0)
提交回复
热议问题