Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Getting exception as System.NullReferenceException: Object reference not set to an instance of an object while publishing a page in CMS5

Vote:
 

Hi,

I am getting System.NullReferenceException: Object reference not set to an instance of an object..while publishing a page...this exception is coming randomly..Please find the  stack trace as below.

[NullReferenceException: Object reference not set to an instance of an object.]
   EPiServer.Web.PropertyControls.PropertyDateControl.ApplyEditChanges() +12
   EPiServer.Web.PropertyControls.PropertyDataControl.ApplyChanges() +44
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +167
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.SetValuesForPropertyControls(Control control) +179
   EPiServer.PageBase.PrepareForSave() +90
   EPiServer.UI.Edit.EditPanel.SavePage() +76
   EPiServer.UI.Edit.EditPageButtonControl.Save(SaveAction saveAction, Boolean goToViewPage) +50
   EPiServer.UI.Edit.EditPageButtonControl.Publish_Click(Object sender, EventArgs e) +19
   EPiServer.UI.WebControls.ToolButton.OnClick(EventArgs e) +107
   EPiServer.UI.WebControls.ToolButton.RaisePostBackEvent(String eventArgument) +135
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565

 

Please help me in this case.Thanks in advance

 

 

#46514
Dec 15, 2010 12:56
Vote:
 

Do you have any custom properties? My guess is that you have and the ApplyEditChanges method isn't implemented correctly.

#46516
Dec 15, 2010 15:03
Vote:
 

Hi,

We are using custom proprties.But if the prob is with custom properties,it should come in all environments..Right?The error is coming only in production environment.It's working fine in Production test and development environments.

Thank you

 

 

 

#46630
Dec 22, 2010 7:47
* 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.