Error getting content

Posted by Community Admin on 04-Aug-2018 11:03

Error getting content

All Replies

Posted by Community Admin on 08-Jun-2012 00:00

Every time Sitefinity tries to get a content from a library the following error appears:

Unable to cast object of type 'Telerik.Cms.Engine.Data.ContentVersion' to type 'Telerik.Cms.Engine.Data.CmsContentBase'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.InvalidCastException: Unable to cast object of type 'Telerik.Cms.Engine.Data.ContentVersion' to type 'Telerik.Cms.Engine.Data.CmsContentBase'.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[InvalidCastException: Unable to cast object of type 'Telerik.Cms.Engine.Data.ContentVersion' to type 'Telerik.Cms.Engine.Data.CmsContentBase'.]
   Telerik.Cms.Engine.Data.Providers.DefaultProvider.LoadQuerySlow(ContentQuery query, Nullable`1 status, Guid[] parentIDs, IMetaSearchInfo[] filter) +406
   Telerik.Cms.Engine.Data.Providers.DefaultProvider.GetContent(Int32 from, Int32 max, String sortExp, String tagName, Nullable`1 status, String itemInfo, SearchCondition itemInfoCondition, Guid[] parentIDs, String[] predefinedFilters, IMetaSearchInfo[] filter) +1446
   Telerik.Cms.Engine.Data.Providers.DefaultProvider.GetContent(Int32 from, Int32 max, String sortExp, String tagName, Nullable`1 status, String itemInfo, SearchCondition itemInfoCondition, Guid[] parentIDs, IMetaSearchInfo[] filter) +48
   Telerik.Cms.Engine.Data.Providers.DefaultProvider.GetContent(Int32 from, Int32 max, String sortExp, String tagName, Nullable`1 status, String itemInfo, Guid[] parentIDs, IMetaSearchInfo[] filter) +45
   Telerik.Cms.Engine.Data.Providers.DefaultProvider.GetContent(Int32 from, Int32 max, String sortExp, String tagName, Nullable`1 status, Guid[] parentIDs, IMetaSearchInfo[] filter) +42
   Telerik.Cms.Engine.ContentManager.GetContent(IMetaSearchInfo[] filter) +40
   sitefinity.kolst.WebControls.ContentRotator.CreateChildControls() +524
   System.Web.UI.Control.EnsureChildControls() +87
   System.Web.UI.Control.PreRenderRecursiveInternal() +44
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

Thanks,
Gianluca.

Posted by Community Admin on 11-Jun-2012 00:00

Is there anybody out there?

Posted by Community Admin on 12-Jun-2012 00:00

Hi Gianluca,

We have answered you in the support ticket.

Greetings,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed