Security accessibility of the overriding method must match the security accessibility of the method being overriden

0

My .net project was running fine. After updating it from .net 4.6 to 4.8 and MVC 4 - MVC5, following error occured:

System.TypeLoadException HResult=0x80131522 Message=Inheritance security rules violated while overriding member: 'DevExpress.Web.Mvc.MaskAttribute.System.Web.Mvc.IClientValidatable.GetClientValidationRules(System.Web.Mvc.ModelMetadata, System.Web.Mvc.ControllerContext)'. Security accessibility of the overriding method must match the security accessibility of the method being overriden. Source= StackTrace:

It will be very helpful if someone guide through this. Thank you.

c#
asp.net-mvc-5
.net-4.6
devexpress-mvc
.net-4.8
asked on Stack Overflow Dec 3, 2019 by Ritesh yadav • edited Dec 24, 2019 by iSahilSharma

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0