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.
Hi,
Sounds like you may have the solution. How did you get hold of the service release that fixed this ??
Thanks..
I'm getting the same TypeAccessException.
I'm using VS 2013, MVC 5.0, .Net 4.5, IgniteUI 2013.2.
I was attempting to recreate the sample code here: http://www.igniteui.com/mobile-pagecontent/basic-usage
Infragistics.Web.MVC.Mobile.dll has file version: 5.13.2.2055
It fails on the first line in the body with:
Additional information: Attempt by security transparent method 'Infragistics.Web.Mvc.Mobile.HtmlHelperExtensions.InfragisticsMobile(System.Web.Mvc.HtmlHelper`1<!!0>)' to access security critical type 'System.Web.Mvc.HtmlHelper`1<TModel>' failed.
I am receiving this same error when attempting to load a grid using nearly identical code.
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.
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.