Copy/paste gives error in version 4.62



We are having a problem with the built-in copy/paste functionality in EPiServer When right-clicking on a page and selecting "Copy" and then right-clicking somewhere else in the page tree and selecting "Paste", an error is given (see below)

Any ideas on what's wrong in this case?



Server Error in '/' Application.

Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:

[NullReferenceException: Object reference not set to an instance of an object.]
   development.Global.CheckPropertiesForFormatting(PageEventArgs e) +31
   development.Global.EPDataFactory_CreatingPage(Object sender, PageEventArgs e) +8
   EPiServer.DataFactory.ᐁ(PageEventArgs , Object ) +67
   EPiServer.DataFactory.Copy(PageReference pageLink, PageReference destinationLink, AccessLevel requiredSourceAccess, AccessLevel requiredDestinationAccess, Boolean publishOnDestination) +165
   EPiServer.DataFactory.Copy(PageReference pageLink, PageReference destinationLink) +143
   EPiServer.Edit.CommandActionBase.PasteCommandTool_Click(Object sender, ImageClickEventArgs e) +1176
   EPiServer.SystemControls.CommandTool.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String param) +49
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +11
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +33
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Mar 18, 2009 9:19
Seems like you have a custom event handler registered in global.asax.cs for the creating page event.  Could you check your global.asax.cs and see what your CheckPropertiesForFormatting() method actually does? Or even better: debug and put a breakpoint in this method. Smile
Mar 18, 2009 9:53
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.