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



The information in this article applies to:

  • Microsoft Content Management Server 2002

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 fix is now available from Microsoft, but it is only intended to correct the problem described in this article. Only apply it to systems that are experiencing this specific problem. This fix may receive additional testing to further ensure product quality. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next Microsoft Content Manager Server 2002 service pack that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site: Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

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

Modification Type:MajorLast Reviewed:4/7/2006
Keywords:kbQFE KBHotfixServer kbBug kbfix KB825023 kbAudDeveloper