Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
TypeAccessException with IgniteUI.MVC 16.2
posted

I have a web application that uses IgniteUI.MVC v16.1.

I am trying to move to 16.2

I have installed IgniteUI.MVC 16.2 via NuGet.

Now, when I use the html helpers I get this error :

Attempt by security transparent method 'Infragistics.Web.Mvc.HtmlHelperExtensions.Infragistics(System.Web.Mvc.HtmlHelper`1<!!0>)' to access security critical type 'System.Web.Mvc.HtmlHelper`1<TModel>' failed.

Assembly 'Infragistics.Web.Mvc, Version=4.16.2.2040, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.

How can I solve this ?