Im trying to move a mvc project from vs 2012 to vs 2013 rc
I created a new mvc project using .net 4.5.1copied the code from the existing project
this line gives an error :
[GridDataSourceAction]The safety rules for inheritance was violated by type: 'Infragistics.Web.Mvc.GridDataSourceActionAttribute'. Derived types must either match the access to the security of the base type or be less accessible.
I don't think it is resolved; I am still getting the error:
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.TypeAccessException: 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.13.2.1010, 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.
ver. 13.2 resolved the problem, but I have the same problem with
infragistics.mobile.js also ver. 13.2
Hi,
Any news on this issue, please ?
Best regards,
Alex.
Hello Christian,
The issue is caused by System.Web.Mvc.dll version 5 and not .NET Framework 4.5.1.
Microsoft removed the AllowPartiallyTrustedCallersAttribute from the System.Web.Mvc.dll v 5.0, thus Infragistics.Web.Mvc.dll is not conforming to the runtime security rules anymore (when used in combination with System.Web.Mvc.dll v 5.0). I've created a internal work item with number: 154763 to address this change. You can track its progress in your account in the 'Support Activity' page. Also we will provide Infragistics.Web.Mvc.dll compiled against System.Web.Mvc.dll v 5.0 when it is available as RTM.
Best regards, Martin Pavlov Infragistics, Inc.
When I put a grid in the view I get a TypeAccessException
An exception of type 'System.TypeAccessException' occurred in App_Web_y2k0bpxn.dll but was not handled in user code
Additional information: Den sikkerhedsgennemsigtige metode 'Infragistics.Web.Mvc.HtmlHelperExtensions.Infragistics(System.Web.Mvc.HtmlHelper`1<!!0>)' forsøgte at få adgang til den sikkerhedskritiske type 'System.Web.Mvc.HtmlHelper`1<TModel>', men forsøget mislykkedes.
Assemblyen 'Infragistics.Web.Mvc, Version=4.13.1.2217, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb' er markeret med AllowPartiallyTrustedCallersAttribute og bruger gennemsigtighedsmodellen for sikkerhed på niveau 2. Gennemsigtighed på niveau 2 bevirker, at alle metoder i AllowPartiallyTrustedCallers-assemblyer som standard bliver sikkerhedsgennemsigtige, hvilket kan være årsagen til denne undtagelse.