Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

PRB: GetMessage Returns Message Object Instead of MeetingItem


View products that this article applies to.

This article was previously published under Q196258

↑ Back to the top


Symptoms

When you use the Exchange Scripting Agent to accept or decline meeting requests programmatically, the following line of code might return a Message object instead of a MeetingItem object:
   Set oMtg = EventDetails.Session.GetMessage(EventDetails.MessageID, Null)
				
For example, if you use AutoAccept script, the following log might be added into the script log when a meeting item (that is, a meeting request or meeting response) arrives:
   Message is not a meeting request or response.
				

↑ Back to the top


Cause

The Event Scripting Agent might be using the CDO (1.1) library. In this case, the Class property of the Message object returns 3 (for a Message) instead of 26 (for an AppointmentItem).

This might happen if you install Microsoft Outlook 97 after you install Microsoft Exchange Server on the same computer and you stop or start Microsoft Exchange Event Service.

When you install Microsoft Outlook 97, Outlook 97 installs and registers CDO (1.1 - OLEMSG32.dll), which does not support meeting items. The Active Messaging Library (CDO 1.1) does not support meeting items. Therefore, the GetMessage method of the Session object returns a Message object instead of a MeetingItem object.

↑ Back to the top


Resolution

Follow these steps to resolve the problem:

  1. Re-register CDO.dll by typing the following line at the MS-DOS command prompt: regsvr32.exe cdo.dll
  2. Go to Control Panel, and click Services.
  3. Stop and start Microsoft Exchange Event Service.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

To see what version of CDO that the Event Scripting Agent is using, use the Version property of the Session object (EventDetails.Session.Version).

↑ Back to the top


Keywords: KB196258, kbprb, kbmsg

↑ Back to the top

Article Info
Article ID : 196258
Revision : 4
Created on : 3/19/2004
Published on : 3/19/2004
Exists online : False
Views : 293