The information in this article applies to:
SYMPTOMSWhen storing a Single Threaded Apartment (STA) Component Object Model (COM) component in Session scope, the entire Active Server Pages (ASP) application is locked down to a single thread for a given user's session. CAUSEWhen an STA is stored in Session scope, ASP can access the object only by the same thread that created the object causing thread-affinity. Because ASP threads are STA threads, the apartment model object lives on the ASP STA thread. If the object is to be used again in the future by the same user (session), then the user has to be routed to the same thread. STATUSThis behavior is by design. MORE INFORMATIONThis behavior is one of the reasons that storing STA objects in Session is not recommended. For additional information, click the article number below to view the article in the Microsoft Knowledge Base: Q243543 INFO: Do Not Store Single-Threaded Apartment Objects in Session Steps to Reproduce Behavior
REFERENCESFor additional informations, click the article number below to view the article in the Microsoft Knowledge Base: Q243543 INFO: Do Not Store Single-Threaded Apartment Objects in Session Q243544 INFO: Component Threading Model Summary Under ASP Q243548 INFO: Design Guidelines for VB Components Under ASP Additional query words:
Keywords : kbASP kbASPObj kbCOMt kbGrpASP kbDSupport |
Last Reviewed: October 27, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |