Article ID: 216580 - View products that this article applies to.
This article was previously published under Q216580
This article has been archived. It is offered "as is" and will no longer be updated.
When calling an Active Server Page (ASP) page that instantiates an inproc component (DLL) from multiple clients, the user will see blocking/serialization; that is, all the clients have to wait for others to finish. If the inproc component is either Apartment or Multithreaded it should not behave this way.
The most common reasons for this behavior are listed below.
The IIS settings for your virtual directory may have the application debugging flags set. If application debugging is turned on, it will cause all requests to this virtual directory to be on a single thread.
Another common reason is that the different requests could run under the same Session ID and will, therefore, be serialized. This is usually the case if testing from multiple browser windows on a single machine.
Other reasons that can explain this behavior are mostly code related. Following are two code snipplets (Visual Basic and Visual C++) to be able to test and see if you are dealing with a coding issue (that is, the sample code works fine with no serialization), or with a configuration issue (that is, the sample code is showing the same behavior as described above).
Turn off application debugging at the virtual directory level:
Steps to reproduce the behaviorWrite the following class module in Visual Basic:
Or Write the following code in Visual C++/ATL:
And the following IDL declaration:
Make sure your ClassID is named "ThreadWaitProject.ThreadTest." Compile the DLL.
Write the following Active Server Pages (ASP) script:
In order to succesfully test this ASP code, you will have to launch this ASP page from two or more different clients (machines)
NOTE: Do not run tests with multiple instances of Internet Explorer on a single machine.
In order to know if your test ran successfully, you should observe the following differences in the results on the different clients:
Article ID: 216580 - Last Review: February 21, 2014 - Revision: 3.2
Contact us for more help
Connect with Answer Desk for expert help.