Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
PageReference was not set to a valid value Parameter name: pageLink Actual value was PageReference.EmptyReference. 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.ArgumentOutOfRangeException: PageReference was not set to a valid value Parameter name: pageLink Actual value was PageReference.EmptyReference. 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: [ArgumentOutOfRangeException: PageReference was not set to a valid value Parameter name: pageLink Actual value was PageReference.EmptyReference.] EPiServer.DataAccess.PageLoadDB.Load(PageReference pageLink) +768 EPiServer.DataFactory.ᐂ(PageReference ) +50 EPiServer.DataFactory.GetPage(PageReference pageLink, AccessLevel access) +471 EPiServer.PageBase.GetPage(PageReference pageLink) +173 EPiServer.Edit.EditPanel.get_CurrentPage() +243 EPiServer.UserControlBase.get_CurrentPage() +21 EPiServer.Edit.VersionListControl.PopulateVersionList() +44 EPiServer.Edit.VersionListControl.EditPanel_SavedChanges(Object sender, EventArgs e) +7 EPiServer.Edit.EditPanel.SavePage() +145 EPiServer.EditPage.ᐁ(Object , EventArgs ) +261 System.EventHandler.Invoke(Object sender, EventArgs e) +0 System.Web.UI.Control.OnLoad(EventArgs e) +67 System.Web.UI.Control.LoadRecursive() +35 System.Web.UI.Page.ProcessRequestMain() +750
My thoughts are that EPiServer is trying to display the page, even though it was never created, and so complains of an empty reference (since I hook the event at the CreatingPage, the new page has not been assigned a PageLink PageReference yet). If this is the case, is this a known issue? Should I force a redirect in my event handler? (I'd rather not, but if there is no clean solution, I will). If I am wrong, and the problem is something else, I am very very interested in suggestions :) Specs: EPiServer 4.51 Windows server 2003 SP 1 Microsoft SQL Server 2000 SP 4