PRB: CDO Application in an ASP Page Causes ASP 0115 Error
ID: Q195379
|
The information in this article applies to:
-
Collaboration Data Objects (CDO), versions 1.1, 1.2, 1.21
SYMPTOMS
Running a Collaboration Data Objects (CDO) application in an Active Server
Pages (ASP) page, may return the following error from the Internet
Information Server (IIS) server:
ASP 0115
CAUSE
This is sometimes caused by not properly closing a CDO session from within
an .asp application environment.
RESOLUTION
Make sure that you close all of the currently open CDO sessions that you
are using. Following are two ways to do this:
- Make sure that you call the Logoff method of the Session object and set
all CDO object references to Nothing immediately after the script that
does the CDO operations ends. This ensures that the references are
cleaned up properly.
-or-
- Use the Session_OnEnd event subroutine in the Global.asa file to ensure
that all CDO Session objects are logged off and set to Nothing.
MORE INFORMATION
The Global.asa file provides the Application and Session objects with the
location to run script for their OnStart and the OnEnd events.
The Application_OnStart event fires when an .asp page is requested from the
application directory for either the first or the last IIS restart or
application timeout. The Session_OnStart event fires when a new page is
called that is not involved with the current active session, good for
creating user specific variables and objects. The Session_OnEnd event is
triggered when the Session timeout period has expired or a session is
abandoned. The default timeout value is 30 minutes. The Application_OnEnd
event is triggered when the last session is closed or the application is
closed.
REFERENCES
For more information about the ASP 0115 error, please see the following
articles in the Microsoft Knowledge Base:
Q194190
PRB: ASP 0115 a Trappable Error Has Occurred
Q191979
VB Component Not Marked Apartment Produces ASP 0115 Error
Microsoft Developer Network, topic: "Global.asa Reference".
Additional query words:
Keywords : kbASP kbCDO110 kbCDO120 kbCDO121 kbMsg kbVBScript
Version : WINDOWS:1.1,1.2,1.21
Platform : WINDOWS
Issue type : kbprb