Microsoft KB Archive/825023

= &quot;Object Has Been Deleted&quot; Error Message When You Try to Save a New Page =

Article ID: 825023

Article Last Modified on 11/15/2007

-

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 &quot;More Information&quot; 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 .Datasource property contains an error, and  is the name of a placeholder object. If any action is attempted on the .Datasource property after the rollback, the error occurs. The error does not occur after the page has been saved and the rollback is called.



Hotfix Information
A supported hotfix is now 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 service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or 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. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

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:

Line 100: 

Line 101: 

Line 102:

Line 103:

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

Additional query words: exception custom placeholder object has been deleted

Keywords: kbqfe kbhotfixserver kbbug kbfix KB825023

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.