More in this section

Forums / Bugs & Issues / Error getting content

Error getting content

3 posts, 0 answered
  1. KPNQWEST ITALIA SPA
    KPNQWEST ITALIA SPA avatar
    6 posts
    Registered:
    20 Oct 2010
    08 Jun 2012
    Link to this post
    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.
  2. KPNQWEST ITALIA SPA
    KPNQWEST ITALIA SPA avatar
    6 posts
    Registered:
    20 Oct 2010
    11 Jun 2012
    Link to this post
    Is there anybody out there?
  3. Victor Velev
    Victor Velev avatar
    1345 posts
    Registered:
    06 Jul 2015
    12 Jun 2012
    Link to this post
    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
3 posts, 0 answered