none
Microsoft Exchange RRS feed

  • Question

  • I have found a problem with my code but I cannot see how I can improve my code so that it will not crash. The problem is it will run with only a warning in debug mode but it will crash if published in release mode. 

    Code: 

    For Each oAE As Outlook.AddressEntry In oAddressBook.AddressEntries

    Dim ex As Outlook.ExchangeUser = oAE.GetExchangeUser

    Dim supv As Outlook.ExchangeUser = ex.GetExchangeUserManager

    Next

    warning message:

    microsoft exchange is trying to retrieve data from the server cassic

    Tuesday, June 4, 2013 4:19 PM

Answers

All replies

  • If full details are not cached by the Outlook Address Book provider, your code will have to talk to the server, whcih indeed can take a long time or error out.

    Why would you want to retrieve the manager for *all* entries in an address book container?


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    Tuesday, June 4, 2013 6:12 PM
  • I want to run a tool to update a database to the section of the company I work in. The tool will looking for new employees, no longer employees, and update positions titles according to my companies Outlook Address Book. 
    Tuesday, June 4, 2013 7:01 PM
  • You are using a wrong API then - Exchange GAL lives on top of Active Directory, so you will be much better off using an AD API, such as LDAP. You will be able to filter out the entries that have not changed using, for example, whenChanged LDAP attribute (http://msdn.microsoft.com/en-us/library/windows/desktop/ms680921(v=vs.85).aspx)


    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by Chochstrasser Thursday, June 6, 2013 6:04 PM
    Tuesday, June 4, 2013 9:26 PM