Blocking/serialization when using InProc component (DLL) from ASP (216580)
The information in this article applies to:
- Microsoft Internet Information Server 4.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
This article was previously published under Q216580 SYMPTOMS
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.
CAUSE
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).
RESOLUTION
Turn off application debugging at the virtual directory level: - To open MMC, click the Start menu, and point to Programs, Windows NT 4.0 Option Pack, and Microsoft Internet Information Server. Click Internet Service Manager.
- Select the Virtual Directory, and select Properties.
- In the lower half of the Virtual Directory properties (Application Settings pane), click Configuration.
- On the App Debugging tab, click to clear the following debugging check boxes:
- Enable ASP server-side script debugging
- Enable ASP client-side script debugging
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 3/31/2006 |
---|
Keywords: | kbIntlDev kbprb KB216580 |
---|
|