{"action":"opened","issue":{"url":"https://api.github.com/repos/OfficeDev/PnP/issues/1311","repository_url":"https://api.github.com/repos/OfficeDev/PnP","labels_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1311/labels{/name}","comments_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1311/comments","events_url":"https://api.github.com/repos/OfficeDev/PnP/issues/1311/events","html_url":"https://github.com/OfficeDev/PnP/issues/1311","id":133954201,"number":1311,"title":"Can't Get .eml attachments from outlook message.","user":{"login":"yuribb","id":11962497,"avatar_url":"https://avatars.githubusercontent.com/u/11962497?v=3","gravatar_id":"","url":"https://api.github.com/users/yuribb","html_url":"https://github.com/yuribb","followers_url":"https://api.github.com/users/yuribb/followers","following_url":"https://api.github.com/users/yuribb/following{/other_user}","gists_url":"https://api.github.com/users/yuribb/gists{/gist_id}","starred_url":"https://api.github.com/users/yuribb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuribb/subscriptions","organizations_url":"https://api.github.com/users/yuribb/orgs","repos_url":"https://api.github.com/users/yuribb/repos","events_url":"https://api.github.com/users/yuribb/events{/privacy}","received_events_url":"https://api.github.com/users/yuribb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-16T11:23:26Z","updated_at":"2016-02-16T11:23:26Z","closed_at":null,"body":"Hello. I have created a message with .eml files attachment. Now that i'm trying to get that message by using Microsoft.Office365.OutlookServices. I successfully received the message, but attempt to get attachment from that message using request \"m_user.Messages[message.Id].Attachments\" where m_user is IUserFetcher, get error \"Unable to cast object of type 'Microsoft.Exchange.Services.Core.Types.ItemAttachmentType' to type 'Microsoft.Exchange.Services.Core.Types.FileAttachmentType'.\" in this stack trace:\r\n\"   at Microsoft.OData.ProxyExtensions.DataServiceContextWrapper.<ExecuteAsync>d__3a`2.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Upsafe.Office365Backup.OfficeClientWrapper.Mail.OfficeMailFolderInfo.<GetAttachmentsOfMessages>d__29.MoveNext()\".\"\r\nIs it the error in the library or wrong request? Can i take my .eml attachments?\r\nBest regard.\r\n"}}