PRB: Storing STA COM Component in Session Locks Session Down to Single Thread (243815)
The information in this article applies to:
- Microsoft Active Server Pages
- Microsoft Internet Information Server 3.0
- Microsoft Internet Information Server 4.0
This article was previously published under Q243815 SYMPTOMS
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.
REFERENCESFor additional informations, click the article number below
to view the article in the Microsoft Knowledge Base:
243543 INFO: Do Not Store Single-Threaded Apartment Objects in Session
243544 INFO: Component Threading Model Summary Under ASP
243548 INFO: Design Guidelines for VB Components Under ASP
Modification Type: | Major | Last Reviewed: | 11/17/2003 |
---|
Keywords: | kbASPObj kbprb KB243815 kbAudDeveloper |
---|
|