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 />
</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.
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.
Both Infragistics.Web.Mvc and Infragistics.Web.Mvc.Mobile is ver. 5.13.2.2055
Hello Christian,
Did you have the chance to download the latest service release?Can you confirm that the issue has been resolved with it?
Please let me know when you test this.Looking forward to hearing from you.
I am glad to hear that.
Thank you for using our product.
Version 5.13.2.2157 solved the problem
thank You