Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
After moving a media item, this error comes up:
[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
Also getting this error after moving a content node:
[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
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...
umbraco v 4.7.0 (Assembly version: 1.0.4090.38017)
Nothing appears corrupt in my install, so must be something in DateFolders. How can I resolve this issue?
Just updating, issue still occuring.
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.
Fixed by upgrading to latest version compatible with Umbraco 6.x.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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'.
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'.
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...
umbraco v 4.7.0 (Assembly version: 1.0.4090.38017)
Nothing appears corrupt in my install, so must be something in DateFolders. How can I resolve this issue?
Just updating, issue still occuring.
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.
Fixed by upgrading to latest version compatible with Umbraco 6.x.
is working on a reply...