'Outlook Interop Folder.CopyTo method work offline without server connection
I'm trying to copy outlook inbox mail to new pst file with outlook interop. I can do with folder.CopyTo(destination) method and it works i can copy from ost to pst. But the problem is currenlty exchange server is not available and when i run the command without internet connection (or exchange server is unavailable to client ) i get exception saying "network problems are preventing connection to microsoft exchange."
If i try to read each item in outlook (.ost) one by one and create copy of item and move it to new pst i can do it offline. But it's slower and mostly outlook is gets into not responding state.
Is it possbile to use folder.CopyTo() method in outlook interop offline without server connection ?
Solution 1:[1]
Open Outlook in cached mode, and then copy the Inbox folder to the target folder. There is a chance that not all content of the folder is cached on the client side, so it is not possible to copy the full content available on the server side only without a connection available.
Also you may check out the DisableCrossAccountCopy value in the window registry:
HKCU\Software\Microsoft\Office\16.0\Outlook
where 16.0 stands for the Outlook version. It has the side effect of disabling this method.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Eugene Astafiev |
