Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Autofac IOC always create problem at production server / hosting in Asp.Net Web Site (c#)
How to resolve this issue, without changing Trust level?

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.


What I have tried:

I tried by changing trust level via Plesk, but i don't think hosting gave us enough permission to change trust level.
Posted
Comments
Richard Deeming 28-Aug-18 15:04pm    
Everything on Google suggests you're using the wrong version of the NuGet package for your solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900