I downloaded the Mvc4Future nuget package in my ASP.NET MVC 5 project. When I use ActionFilter attributes, such as [AjaxOnly], you will throw an inherited type violation rule. Here is the full post:
Inheritance Security Rules Violated by Type: "Microsoft.Web.Mvc.AjaxOnlyAttribute". Derived types must either correspond to the security of the underlying type or be less accessible.
How can I fix this problem?
source share