

If you are offline, just keep working on Outlook, it will upload when the network is available. Then new information would synchronize to the same place of cache. When you are using Microsoft Outlook in Cached Exchange Mode with the net connection, it will automatically use the cached data to speed up downloading. The copy of your Outlook email data will be saved on your PC. What Is Cached Exchange ModeĬached Exchange Mode requires you have a Microsoft Exchange Account for the first step. Therefore, to switch Cached Exchange Mode to online mode, you have to enable or disable Cached Exchange Mode in Outlook 2007/2010/2013/2016 according to your physical truth. For instance, the network speed is extremely slow or even disconnected. In some cases, we need to use Cached Exchange Mode to make our work efficiency. Delete the old Offline Address Book then force an update (Doesn't work).Enable or Disable Cached Exchange Mode in Outlook 2007/2010/2013/2016.Force a Offline Address book update (Doesn't work).I have tried a number of suggestions I've found online, none of them have worked. TextBo圎mployeeID.Text = currentUser.Alias ***** currentUser = Outlook.ExchangeUser object when "Use Cached Exchange Mode" is disabled. ***** currentUser = null when "Use Cached Exchange Mode" is enabled. Outlook.ExchangeUser currentUser = .GetExchangeUser() Outlook.Application app = new Outlook.Application() How can I force (temporarily) Outlook to connect to Exchange so that GetExchangeUser() works?Īre there any alternative ways of collecting the Exchange user information? // Create a singleton of the Application instance.I suspect that the Cached mode causes this not to be the case all the time and therefore the method fails. My rough understanding is that GetExchangeUser() only works when connected to the Exchange Server. However my company wants to keep this feature enabled.
If I disable the clients Cached Exchange Mode everything works fine.

However, it appears that when the Outlook Account Settings is configured with Cached Exchange Mode enabled the GetExchangeUser() returns null. My company is running on O365 (Exchange) and I am developing an add-in which collects their exchange user information and does various things.
