Skip to main content
All docs
V25.1
  • Inheritance security rules violated by type: 'DevExpress.Web.Mvc.DevExpressEditorsBinder'. Derived types must either match the security accessibility of the base type or be less accessible.

    Error Description

    If your application uses MVC 5, you may encounter the following exceptions:

    • Inheritance security rules violated by type: ‘DevExpress.Web.Mvc.DevExpressEditorsBinder’. Derived types must either match the security accessibility of the base type or be less accessible.
    • Assembly ‘DevExpress.Web.Mvc.vX.Y, Version=X.Y.Z.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a’ is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model

    These issues are caused by a breaking change introduced in ASP.NET MVC v5.

    Solution

    Starting with v12.2.14 and v13.1.8, use the DevExpress.Web.Mvc5 reference instead of the DevExpress.Web.Mvc reference if the target ASP.NET MVC version is v5.

    Note that ASP.NET MVC v5 requires you to enable the Full .NET Trusted Level option. Please refer to the following topic for more information: How to Upgrade an ASP.NET MVC 4 and Web API Project to ASP.NET MVC 5 and Web API 2.