var message = EmailMessage.Bind(exchangeService, itemid,
                                       new PropertySet(
                                                       ItemSchema.Attachments));




    exchangeService.TraceListener=new TraceListener();
    exchangeService.TraceEnabled = true;
    message.Load(new PropertySet(ItemSchema.MimeContent)); // Getting exception here.
   //  File.WriteAllBytes("email.eml", message.MimeContent.Content);

我在尝试加载mime内容时遇到以下异常 .

发生Microsoft.Exchange.WebServices.Data.ServiceRequestException HResult = -2146233088消息=请求失败 . 无法从传输连接读取数据:连接已关闭 . Source = Microsoft.Exchange.WebServices StackTrace:位于Microsoft.Exchange.WebServices.Data上的Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.InternalExecute()中的Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponse(IEwsHttpWebResponse响应) . 来自Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1 . 在Microsoft.Exchange.WebServices.Data上的Microsoft.Exchange.WebServices.Data.Item.InternalLoad(PropertySet propertySet)中的Microsoft.Exchange.WebServices.Data.ExchangeService.InternalLoadPropertiesForItems(IEnumerable1项,PropertySet propertySet,ServiceErrorHandling errorHandling)执行() . 位于f:\ Projects \ EmailArchiving \ ConsoleApplication1 \ ConsoleApplication1 \ Program.cs中的ConsoleApplication1.Program.Main(String [] args)中的ServiceObject.Load(PropertySet属性):第34行InnerException:System.IO.IOException HResult = -2146232800 Message =无法从传输连接读取数据:连接已关闭 . Source = System StackTrace:在System.IO.Comp.ConnectStream.Read(Byte []缓冲区,Int32偏移量,Int32大小)处于System.IO.Compression.DeflateStream.Read(Byte []数组,Int32偏移量,Int32计数)处 . 系统中的System.Xml.XmlTextReaderImpl.ParseText(Int32&startPos,Int32&endPos,Int32和outOrChars)中的System.Xml.XmlTextReaderImpl.ReadData()的IO.Compression.GZipStream.Read(Byte []数组,Int32偏移量,Int32计数) . 位于System.Xml.XmlTextReaderImpl.Read()的System.Xml.XmlTextRemplImpl.ParseElementContent()中的System.Xml.XmlTextReaderIad.Read()位于Microsoft的System.Xml.XmlCharCheckingReader.Read()的System.Xml.XmlTextReader.Read()中的Xml.XmlTextReaderImpl.ParseText() . Microsoft.Exchange.WebServices.Data.ComplexProperty.LoadFromXml(EwsServiceXmlReader)上的Microsoft.Exchange.WebServices.Data.ComplexProperty.InternalLoadFromXml(EwsServiceXmlReader reader,XmlNamespace xmlNamespace,String xmlElementName,Func2 readAction)中的Exchange.WebServices.Data.EwsXmlReader.Read() Micr的reader,XmlNamespace xmlNamespace,String xmlElementName)位于Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.LoadPropertyValueFromXml的Microsoft.Exchange.WebServices.Data.ComplexPropertyDefinitionBase.InternalLoadFromXml(EwsServiceXmlReader reader,PropertyBag propertyBag)中的osoft.Exchange.WebServices.Data.ComplexProperty.LoadFromXml(EwsServiceXmlReader reader,String xmlElementName)( EwsServiceXmlReader reader,PropertyBag propertyBag)at Microsoft.Exchange.WebServices.Data.PropertyBag.LoadFromXml(EwsServiceXmlReader reader,Boolean clear,PropertySet requestedPropertySet,Boolean onlySummaryPropertiesRequested)at Microsoft.Exchange.WebServices.Data.ServiceObject.LoadFromXml(EwsServiceXmlReader reader,Boolean clearPropertyBag, PropertySet requestedPropertySet,Boolean summaryPropertiesOnly)at Microsoft.Exchange.WebServices.Data.EwsServiceXmlReader.ReadServiceObjectsCollectionFromXml [TServiceObject](XmlNamespace collectionXmlNamespace,String collectionXmlElementName,GetObjectInstanceDelegate1 getObjectInstanceDelegate,B Microsoft.Exchange.WebServices.Data.GetItemResponse上的Microsoft.Exchange.WebServices.Data.EwsServiceXmlReader.ReadServiceObjectsCollectionFromXml [TServiceObject](String collectionXmlElementName,GetObjectInstanceDelegate1 getObjectInstanceDelegate,Boolean clearPropertyBag,PropertySet requestedPropertySet,Boolean summaryPropertiesOnly)中的oolean clearPropertyBag,PropertySet requestedPropertySet,Boolean summaryPropertiesOnly)位于Microsoft.Exchange.WebServices.Data的Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest1.ParseResponse(EwsServiceXmlReader reader)的Microsoft.Exchange.WebServices.Data.ServiceResponse.LoadFromXml(EwsServiceXmlReader reader,String xmlElementName)中的.ReadElementsFromXml(EwsServiceXmlReader reader) . Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponse(IEwsH)上的Microsoft.Exchange.WebServices.Data.SimpleServiceRequestBase.ReadResponseXml(Stream responseStream)中的ServiceRequestBase.ReadResponse(EwsServiceXmlReader ewsXmlReader) ttpWebResponse响应)InnerException:

这个例外的原因是什么?