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
2715
Mode Listview .net 4.5.1
posted

Im using .net 4.5.1 MVC 5 and Infragistics 13.2

This code gives an error

@model IQueryable<intranet.mvc5.Models.m_Udstilling>

@using Infragistics.Web.Mvc

@using Infragistics.Web.Mvc.Mobile

@{

ViewBag.Title = "Udstillinger";

}

<div data-role="content">

<h2>Aktuelle Udstillinger</h2>

@(Html.InfragisticsMobile()

.ListView(Model)

.ID("lvUdstillinger")

.Inset(true)

.ItemTheme("a")

.SubPageHeaderTheme("a")

.Bindings(b =>

{

b.HeaderKeyFor(e => e.Udstilling)

.TextKeyFor(e => e.Sal)

.CustomBindingFor(e => e.Ansvarlig)

.CustomBindingFor(e => e.Fra)

.CustomBindingFor(e => e.Til)

.PrimaryKeyFor(e => e.ID);

})

.ItemTemplate("<div class='ui-li ui-btn-inner'><div class='ui-btn-text'><a class='ui-link-inherit ui-link'>${Udstilling}<br />${Sal}</a></div></div>")

.ItemDetailsTemplate("<div class='detail-container'><h2>${Udstilling}</h2><p>Sal : ${Sal}</p><p>Fra : ${Fra}<br />Til : ${Til}</p><p>Ansvarlig : ${Ansvarlig}</p></div>")

.DataSourceUrl(Url.Action("Get_Udstillinger"))

.DataBind()

.Render()

)

<br />

<br />

</div>

the error is this

The safety rules for inheritance were violated by type: 'Infragistics.Web.Mvc.Mobile.ListViewDataSourceActionAttribute'. Derived types must either match the access to the security of the base type or be less accessible.

  • 20255
    Offline posted

    Hello,

     Thank you for your post!

     Could you please tell me do you reffer the correct MVC 5 dlls? Also what is your product version, in order to try to reproduce the issue, will be highly appreciated if you send me an isolated sample.

     Looking forward to hearing from you.