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);
System.ArgumentOutOfRangeException: index is out of range.