Article ID: 825023 - Last Review: November 15, 2007 - Revision: 2.2 "Object Has Been Deleted" Error Message When You Try to Save a New Page
On This PageSYMPTOMSWhen you save a posting that contains a SingleImagePlaceholderControl edit control with a custom placeholder control on the template, and the custom placeholder control that you create contains handle exceptions, an error occurs if the handle exception is called in the custom placeholder control logic.
When the handle exception is called, the error is not caught correctly, and you receive the following error message in Microsoft Internet Explorer: Object has been deleted. An attempt was made to access the properties or methods of an object that was deleted by the current session. CAUSEWhen you save a new posting with a custom placeholder, the
placeholder calls the CmsHttpContext.Rollback() function if an error occurs in the
placeholder. The next problem is that the <this.BoundPlaceholder>.Datasource
property contains an error, and <this.BoundPlaceholder> is the name of a placeholder object. If any action is attempted on
the <this.BoundPlaceholer>.Datasource property after the rollback, the error occurs. The
error does not occur after the page has been saved and the rollback is called.
RESOLUTIONHotfix InformationA supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix. Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: http://support.microsoft.com/contactus/?ws=support
(http://support.microsoft.com/contactus/?ws=support)
Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.PrerequisitesNo prerequisites are required.Restart RequirementYou do not have to restart your computer after you apply this hotfix.Hotfix Replacement InformationThis hotfix does not replace any other hotfixes.File InformationThe English version of this hotfix has the file attributes (or later) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.Date Time Version Size File name ------------------------------------------------------------------------------------------ 26-Feb-2003 01:39 24,436 Emitterthineditie_activex.inc 30-Jul-2003 17:22 5.0.1646.0 199,288 Microsoft.contentmanagement.webcontrols.dll 26-Feb-2003 20:26 224,487 Nrdhtml.cab STATUS Microsoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
MORE INFORMATIONThis is the full error message you receive in Microsoft Internet Explorer: Server Error in '/WoodgroveNet' Application.
--------------------------------------------------------------------------------
Object has been deleted. An attempt was made to access the properties or methods of an object that was deleted by the current session. 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.Runtime.InteropServices.COMException: Object has been deleted. An attempt was made to access the properties or methods of an object that was deleted by the current session. Source Error: Line 99: </table> Line 100: <cc1:gibaseplaceholdercontrol id="GIBasePlaceholderControl1" runat="server" PlaceholderToBind="forrepro"></cc1:gibaseplaceholdercontrol> Line 101: <cms1:SingleImagePlaceholderControl id="SingleImagePlaceholderControl1" runat="server" PlaceholderToBind="imageforrepro"></cms1:SingleImagePlaceholderControl></td> Line 102: </tr> Line 103: <tr> Source File: C:\Program Files\Microsoft Content Management Server\Sample Data\WoodgroveNet\Templates\JobPosting.aspx Line: 101 Stack Trace: [COMException (0x80041b59): Object has been deleted. An attempt was made to access the properties or methods of an object that was deleted by the current session.] Microsoft.ContentManagement.Interop.Publishing.IRcwPlaceholder.get_Name() +0 Microsoft.ContentManagement.Publishing.Placeholder.get_Name() +32 Microsoft.ContentManagement.WebControls.SingleImageEditControl.getPlaceholderName() +33 Microsoft.ContentManagement.WebControls.SingleImageEditControl.Render(HtmlTextWriter writer) +42 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 Microsoft.ContentManagement.WebControls.BaseWebAuthor.Render(HtmlTextWriter output) +35 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +72 System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +7 System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +29 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 ASP.JobPosting_aspx.__RenderJobPosting(HtmlTextWriter __output, Control parameterContainer) in C:\Program Files\Microsoft Content Management Server\Sample Data\WoodgroveNet\Templates\JobPosting.aspx:101 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27 System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +44 System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +397 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 ASP.JobPosting_aspx.__Render__control1(HtmlTextWriter __output, Control parameterContainer) in C:\Program Files\Microsoft Content Management Server\Sample Data\WoodgroveNet\Templates\JobPosting.aspx:32 System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +27 System.Web.UI.Control.Render(HtmlTextWriter writer) +7 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +243 System.Web.UI.Page.ProcessRequestMain() +1900
| Article Translations
|
Back to the top
