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.
Hello Christian,
I created a new MVC 4 project targeting .net 4.5.1 in VS 2013 RC and referenced Infragistincs.Web.Mvc.dll version 4.13.1.2217 and the project compiles successfully.
The Infragistics.Web.Mvc.GridDataSourceActionAttribute type derives from System.Web.Mvc.FilterAttribute and implements System.Web.Mvc.IActionFilter. Both of them reside in System.Web.Mvc.dll and in my project its version is v4.0.0.0. Can you check what version of System.Web.Mvc.dll you reference in your project?
Best regards,Martin PavlovInfragistics, Inc.
System.Web.Mvc.dll is version 5.0.0.0
If I remove [GridDataSourceAction]
It compile ok
Hi,
Any news on this issue, please ?
Best regards,
Alex.
ver. 13.2 resolved the problem, but I have the same problem with
infragistics.mobile.js also ver. 13.2
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.
Sorry,
I pushed the wrong button earlier.
the issue is actually resolved in Service Release IgniteUI_20132.2012_SR and not in the first release of 2013.2.
the application compiled right and run well after I applied the SR.
Sorry for any inconvenience.
This gives an error in mvc 5 , .net 4.5.1
@(Html.InfragisticsMobile().
Loader().
ScriptPath(Url.Content("~/Scripts/IG/Mobile/")).
CssPath(Url.Content("~/Content/IG/Mobile/")).
Resources("igmList.LoadOnDemand").
Render())
this error :
An exception of type 'System.TypeAccessException' occurred in App_Web_2ulbhgwv.dll but was not handled in user code
Additional information: Den sikkerhedsgennemsigtige metode 'Infragistics.Web.Mvc.Mobile.HtmlHelperExtensions.InfragisticsMobile(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.Mobile, Version=5.13.2.2012, 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.
I am receiving this same error when attempting to load a grid using nearly identical code.