I have written below query where i am getting error like :- "Content with id '26377' is of type 'Castle.Proxies.QBankMediaProxy' which does not inherit required type-EPiServer.Core.PageData"
GetPagesResult will try to deserilzing the result to PageData collection, which your content PublicContentPage does not seem to inherit. Probably GetContentResult will work
Hi ,
I have written below query where i am getting error like :- "Content with id '26377' is of type 'Castle.Proxies.QBankMediaProxy' which does not inherit required type-EPiServer.Core.PageData"
var listableItems = SearchClient.Instance.Search()
.OrderByDescending(x => x.StartPublish)
.Skip(offSet * pageSize)
.Take(pageSize)
.FilterForVisitor()
.GetPagesResult(LanguageSelector.AutoDetect());
Could you please help me to why i am getting this error and what is the solution for that.
Thanks in advance.
Thanks
Sourav Kamila