Copy/paste gives error in version 4.62

Member since: 2006
 

Hi,

We are having a problem with the built-in copy/paste functionality in EPiServer 4.62.0.533. 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?

Regards.

 Emil 

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

#28674 Mar 18, 2009 9:19
  • Member since: 2003
     
    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
    #28677 Mar 18, 2009 9:53