Outlook VSTO Addin COMException Cannot load free/busy information RRS feed

  • Question

  • In my Outlook VSTO Region I am adding attendees from all address books and looking for their free/busy status, but I always get this error

    Outlook.NameSpace mapi = Globals.ThisAddIn.Application.GetNamespace("MAPI"); var reci = mapi.CreateRecipient(""); string st = reci.FreeBusy(new DateTime(2016, 3, 10), 60, true);


    System.Runtime.InteropServices.COMException was unhandled by user code
      Message=Cannot load free/busy information.
      Source=Microsoft Outlook
           at Microsoft.Office.Interop.Outlook.Recipient.FreeBusy(DateTime Start, Int32 MinPerChar, Object CompleteFormat)

    I have also tried doing it from the AddressEntry object, still the same error. Any help/ suggestions will be appreciated.

    Tuesday, March 22, 2016 6:09 PM

All replies

  • Does Recipient.AddressEntry.Type return "EX"?

    Dmitry Streblechenko (MVP)
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, March 22, 2016 6:16 PM
  • My Recipint.AddressEntry.Type = "SMTP"

    It is not an Exchange Account.

    Here are my Account details:

    Account: Google Apps

    UserName: Abc
    Delivery Store: Google Apps -

    Did I mention that I can see my appointment attendee's free/busy status in the Outlook scheduling view.

    Wednesday, March 23, 2016 1:30 PM
  • FreeBusy() only works with Exchange recipients.

    Dmitry Streblechenko (MVP)
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Wednesday, March 23, 2016 2:04 PM
  • Hello,

    Try to use the Resolve method of the Recipient class which attempts to resolve a Recipient object against the Address Book before getting any properties. Does it help?

    Wednesday, March 23, 2016 2:07 PM
  • Dmitry Streblechenko _MVP
    Strange I couldn't find anything on that in Outlook Developer's Reference. How come I can see the same thing is Outlook scheduling view? Is there a workaround to that for non-exchange accounts?

    • Edited by iamadnan Wednesday, March 23, 2016 4:43 PM
    Wednesday, March 23, 2016 2:14 PM
  • Okay Eugene Astafiev that is working partially (*phew*), there is a small issue, I have to make two attempts, on first call it gives error but on second one it just works. Any ideas?

    EDIT: It works even without the Resolve() call with two attempts.

    • Edited by iamadnan Wednesday, March 23, 2016 2:41 PM Additional info
    Wednesday, March 23, 2016 2:26 PM
  • Try to run the code against Exchange accounts in Outlook. Do you get the same results?
    Wednesday, March 23, 2016 6:37 PM