Microsoft KB Archive/196258

= PRB: GetMessage Returns Message Object Instead of MeetingItem =

Article ID: 196258

Article Last Modified on 3/19/2004

-

APPLIES TO


 * Microsoft Collaboration Data Objects 1.1
 * Microsoft Exchange Server 5.5 Standard Edition

-



This article was previously published under Q196258



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.



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.



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.



STATUS
This behavior is by design.



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).

Keywords: kbmsg kbprb KB196258

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.