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.

ArgumentOutOfRangeException exception when an EWS application creates a new MIME email in an Exchange Server 2010 environment


View products that this article applies to.

Symptoms

Consider the following scenario:
  1. You run an Exchange Web Services (EWS) application to create a MIME email message that contains a file attachment. 
  2. 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.


↑ Back to the top


Resolution

To resolve this issue, install the following update rollup:
2803727 Description of Update Rollup 1 for Exchange Server 2010 Service Pack 3

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

↑ Back to the top


More Information

For more information about the EmailMessage.Save method, go to the Microsoft MSDN website EmailMessage.Save Method.

↑ Back to the top


Keywords: kbqfe, kbfix, kbsurveynew, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2840099
Revision : 1
Created on : 1/7/2017
Published on : 5/30/2013
Exists online : False
Views : 354