Article ID: 243815 - Last Review: November 15, 2006 - Revision: 4.1 PRB: Storing STA COM Component in Session Locks Session Down to Single ThreadThis article was previously published under Q243815 On This PageSYMPTOMS
When 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.
CAUSE
When 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.
STATUS
This behavior is by design.
MORE INFORMATION
This 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:
243543
(http://support.microsoft.com/kb/243543/EN-US/
)
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:
243543
(http://support.microsoft.com/kb/243543/EN-US/
)
INFO: Do Not Store Single-Threaded Apartment Objects in Session
243548
(http://support.microsoft.com/kb/243548/EN-US/
)
INFO: Design Guidelines for VB Components Under ASP
| Article Translations
|
Back to the top
