Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Getting error like :- "Content with id '26377' is of type 'Castle.Proxies.QBankMediaProxy' which does not inherit required type-EPiServer.Core.PageDat

$
0
0

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<PublicContentPage>()
.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


Viewing all articles
Browse latest Browse all 6894

Trending Articles