PRB: CDO Application in an ASP Page Causes ASP 0115 Error (195379)



The information in this article applies to:

  • Collaboration Data Objects (CDO) 1.1
  • Collaboration Data Objects (CDO) 1.2
  • Collaboration Data Objects (CDO) 1.21

This article was previously published under Q195379

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:

194190 PRB: ASP 0115 a Trappable Error Has Occurred

Microsoft Developer Network, topic: "Global.asa Reference".

Modification Type:MajorLast Reviewed:5/15/2006
Keywords:kbMsg kbprb KB195379