"Object Has Been Deleted" Error Message When You Try to Save a New Page

Article translations Article translations
Article ID: 825023 - View products that this article applies to.
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

On This Page

SYMPTOMS

When 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.
For more information about the error message, see the "More Information" section.

CAUSE

When 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.

RESOLUTION

Hotfix Information

A 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
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.

Prerequisites

No prerequisites are required.

Restart Requirement

You do not have to restart your computer after you apply this hotfix.

Hotfix Replacement Information

This hotfix does not replace any other hotfixes.

File Information

The 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 INFORMATION

This 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

Properties

Article ID: 825023 - Last Review: February 27, 2014 - Revision: 2.2
APPLIES TO
  • Microsoft Content Management Server 2002
Keywords: 
kbnosurvey kbarchive kbautohotfix kbqfe kbhotfixserver kbbug kbfix KB825023

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com