Mvc4future cannot be used in ASP.NET MVC 5

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?

+6
source share
1 answer
+8
source

Source: https://habr.com/ru/post/956309/


All Articles