Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Connie DeCinko 931 posts 1160 karma points
    Aug 22, 2011 @ 22:50
    Connie DeCinko
    0

    Error when moving Media items

    After moving a media item, this error comes up:

    Unable to cast object of type 'umbraco.cms.businesslogic.media.Media' to type 'umbraco.cms.businesslogic.web.Document'.

     

    [InvalidCastException: Unable to cast object of type 'umbraco.cms.businesslogic.media.Media' to type 'umbraco.cms.businesslogic.web.Document'.]
       MyDateFolders.DateFolders.Document_AfterMove(Object sender, MoveEventArgs e) +109
       System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
       umbraco.cms.businesslogic.CMSNode.Move(CMSNode parent) +1557
       umbraco.dialogs.moveOrCopy.HandleDocumentMoveOrCopy() +1537
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691

     

  • Connie DeCinko 931 posts 1160 karma points
    Aug 22, 2011 @ 22:53
    Connie DeCinko
    0

    Also getting this error after moving a content node:

    Unable to cast object of type 'umbraco.cms.businesslogic.CMSNode' to type 'umbraco.cms.businesslogic.web.Document'.

     

    [InvalidCastException: Unable to cast object of type 'umbraco.cms.businesslogic.CMSNode' to type 'umbraco.cms.businesslogic.web.Document'.]
       MyDateFolders.DateFolders.Document_AfterMove(Object sender, MoveEventArgs e) +109
       System.EventHandler`1.Invoke(Object sender, TEventArgs e) +0
       umbraco.cms.businesslogic.CMSNode.Move(CMSNode parent) +1557
       umbraco.cms.businesslogic.CMSNode.Move(CMSNode parent) +1530
       umbraco.cms.businesslogic.CMSNode.Move(CMSNode parent) +1530
       umbraco.dialogs.moveOrCopy.HandleDocumentMoveOrCopy() +1284
       System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +154
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3691

     

     

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 23, 2011 @ 09:22
    Stefan Kip
    0

    The Document_AfterMove should not get fired when moving anything except for Documents (like CMSNode and Media you're mentioning).

    What umbraco version are you running? Sounds to me like it's corrupt or something...

  • Connie DeCinko 931 posts 1160 karma points
    Aug 23, 2011 @ 17:08
    Connie DeCinko
    0

    umbraco v 4.7.0 (Assembly version: 1.0.4090.38017)

     

  • Connie DeCinko 931 posts 1160 karma points
    Aug 26, 2011 @ 20:37
    Connie DeCinko
    0

    Nothing appears corrupt in my install, so must be something in DateFolders.  How can I resolve this issue?

     

  • Connie DeCinko 931 posts 1160 karma points
    Sep 02, 2011 @ 18:52
    Connie DeCinko
    0

    Just updating, issue still occuring.

     

  • Connie DeCinko 931 posts 1160 karma points
    Jan 07, 2016 @ 15:01
    Connie DeCinko
    0

    Just upgraded my production site to Umbraco 6.2.5 and this error still occurs when trying to move media items into folders from the root.

  • Connie DeCinko 931 posts 1160 karma points
    Jan 07, 2016 @ 15:42
    Connie DeCinko
    0

    Fixed by upgrading to latest version compatible with Umbraco 6.x.

Please Sign in or register to post replies

Write your reply to:

Draft