![]() ![]() 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. This usually fixes it for us.My company is running on O365 (Exchange) and I am developing an add-in which collects their exchange user information and does various things. In this case I disable that custom send and receive group and create a new one. Often the send and receive profile gets corrupt and/or the option to "Download offline address book" is checked which for whatever reason ALWAYS causes a problem for us. Sometimes people set Outlook to not send immediately when connected and set up a custom send/receive schedule so that outgoing mail sits in their mailbox for 3 minutes or so before leaving. The other thing to look for is you say you removed the profile but did you also ensure the OST file was removed just incase? OST files become corrupt so easy on complicated or large mailboxes.Įdit: Oh and one other thing to look for is to check if they have custom send and receive options. If you have Public Folders set to favorites and set Outlook to download public folder favorites, it takes an insane amount of time to do the initial download and Outlook will often say it's not responding. Run Outlook.exe /cleanips - This had seemed to fix it before (or so I thought)Īre you using Public Folders? Large amounts of files or contacts? With our users we have something like 20,000 contacts in public folders and a calendar that goes all the way back to the 90s.Turning off Cached Exchange Mode - This works, but not ideal so I would like a permanent fix to work the way it was before.I figured it may have been an issue with AD and Office 365. This has worked on occasions before, although the issue will occur again within an hour and is an inconvenience. I have also tried doing Send / Receive - Update Folder but this gets stuck on Synchronizing Hierarchy and does nothing. In Outlook itself, the status is Updating Inbox but its not doing anything - it's hanging. However when a user logs onto another machine they are able to send emails fine or if they log in to OWA they have no problems either. Emails can't be received and can't be sent. In the past couple of days I have had an issue which has appeared on again with some users' Outlook. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |