Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mvc4future unable use in ASP.NET MVC 5

I was downloaded Mvc4Future nuget package in my ASP.NET MVC 5 project. When I use the ActionFilter attributes such as [AjaxOnly] will cause "Inheritance security rules violated by type" exception. Here is the full message:

Inheritance security rules violated by type: 'Microsoft.Web.Mvc.AjaxOnlyAttribute'. Derived types must either match the security accessibility of the base type or be less accessible.

How can I fix this problem?

like image 639
Will Huang Avatar asked Oct 19 '13 09:10

Will Huang


1 Answers

It has moved to Microsoft.AspNet.Mvc.Futures. https://www.nuget.org/packages/Microsoft.AspNet.Mvc.Futures/5.0.0

like image 126
Chris Foster Avatar answered Nov 09 '22 16:11

Chris Foster