title: Get Mailbox Permissions using EWS
body: <p>I'm creating an app that needs to get the permissions for each MailBox, and I can't seem to get it to work. I've noticed in the VS Object Browser that the <a href="https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.folder.permissions(v=exchg.80).aspx" rel="noreferrer">Permissions</a> property is on the <a href="https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.folder%28v=exchg.80%29.aspx" rel="noreferrer">Folder</a> class. </p>
  
  <p>So I'm guessing I need to get the <a href="https://msdn.microsoft.com/en-us/library/microsoft.exchange.webservices.data.mailbox%28v=exchg.80%29.aspx" rel="noreferrer">MailBox</a> object and then get the root/default folder so I can get the Permissions.</p>
  
  <p>This is what I've done so far, but when it calls <code>Folder rootfolder = Folder.Bind(service, sharedMailboxRootFolderId);</code> I get the following exception:</p>
  
  <blockquote>
    <p>"The Client Access Server version does not match the accessed
    resource's Mailbox Server version."</p>
  </blockquote>
  
  <pre><code>ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1);
  string exchangeServerWebServicesUrl = "https://example.com/EWS/Exchange.asmx";
  service.Url = new Uri(exchangeServerWebServicesUrl);
  
  string username = "*********************";
  string password = "*********************";
  
  service.UseDefaultCredentials = false;
  service.Credentials = new WebCredentials(username, password);
  
  Mailbox sharedMailbox = new Mailbox("shared@example.com");
  
  FolderId sharedMailboxRootFolderId = new FolderId(WellKnownFolderName.Root, sharedMailbox);
  Folder rootfolder = Folder.Bind(service, sharedMailboxRootFolderId);
  
  var permissions = rootfolder.Permissions;
  </code></pre>
  
  <p>I've tried passing in different ExchangeVersion enum values, but they don't work either. But passing ExchangeVersion.Exchange2007_SP1 does work when I try and get the Public Folders root folder.</p>
  
  <pre><code>Folder rootfolder = Folder.Bind(service, WellKnownFolderName.PublicFoldersRoot);
  </code></pre>
  
  <p>So the question is how can I get a MailBoxes permissions using EWS?</p>