ArgumentOutOfRangeException exception when an EWS application creates a new MIME email in an Exchange Server 2010 environment
Consider the following scenario:
- You run an Exchange Web Services (EWS) application to create a MIME email message that contains a file attachment.
- In the code of the application, you specify the version of EWS for the ExchangeService object. For example:
ExchangeService esb = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
In this scenario, the application fails when the EmailMessage.Save
method is called. The following exception is thrown:
System.ArgumentOutOfRangeException: index is out of range.
To resolve this issue, install the following update rollup:
Description of Update Rollup 1 for Exchange Server 2010 Service Pack 3
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Article ID: 2840099 - Last Review: 05/30/2013 00:25:00 - Revision: 1.0
- Microsoft Exchange Server 2010 Service Pack 3
- kbqfe kbfix kbsurveynew kbexpertiseinter KB2840099