Microsoft KB Archive/282156

= Destructors for COM Objects on ASP Pages Are Not Called =

Article ID: 282156

Article Last Modified on 10/23/2003

-

APPLIES TO


 * Microsoft Active Server Pages 4.0
 * Microsoft COM+ 1.0

-



This article was previously published under Q282156



SYMPTOMS
The destructor for a Component Object Model (COM) object that is used in an Active Server Pages (ASP) page may not be called under the following circumstances:
 * The component is registered in a COM+ library package.
 * The Transaction Support property is set to the default &quot;Not Supported&quot; for the component in the COM+ package.
 * The object uses the  tag to instantiate on an ASP page.
 * The ASP page has the <@TRANSACTION=REQUIRED> directive set.

When you shut down Internet Information Server (IIS), the destructors may be called, or application errors may occur.



WORKAROUND
To work around this problem, use one of the following methods:
 * Do not put the component in a COM+ package.
 * Set the Transaction Support property to &quot;Supported&quot; for the component in the COM+ package.
 * Use the Server.CreateObject command instead of the  tag to create the object.
 * Remove <@TRANSACTION=REQUIRED> from the ASP page.



RESOLUTION
Microsoft is researching this problem and will post more information in this article when the information becomes available.



STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbfix KB282156

-

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

© Microsoft Corporation. All rights reserved.