BUG: E_INVALIDARG Error Returned From CDO Reply Method

ID: Q183095

The information in this article applies to:

SYMPTOMS

When executing the Reply method of a Collaboration Data Objects (CDO) Message object, you may receive the following CDO error message:

   MAPI_E_INVALIDARG [80070057].

This message can be very misleading because the Reply method takes no arguments.

CAUSE

The underlying issue is that the logic in the Reply method looks for the Messaging Application Programming Interface (MAPI) message field PR_SENDER* and calls the Extended MAPI function ModifyRecipients() on the MAPI message. If PR_SENDER* properties are missing, an E_INVALIDARG is passed to MAPI's ModifyRecipients() function.

STATUS

This behavior is by design, but Microsoft acknowledges that this error message is not clearly stating the underlying issue. Microsoft is researching this issue and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q176916
   TITLE     : INFO: Active Messaging and Collaboration Data Objects (CDO)

Additional query words: ActMsg
Keywords          : kbCDO kbCDO110bug kbCDO120bug kbCDO121bug kbMsg 
Version           : WINDOWS:1.2,1.21
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: December 14, 1998