Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / October 2006

Tip: Looking for answers? Try searching our database.

"Outlook failed to get the Sync Objects" error Visual Basic.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ad the Lad - 04 Oct 2006 10:42 GMT
This message occurs when you instantiatiate the Outlook SyncObjects
object:

See below for example:

Dim outapp As Outlook.Application
Dim olns As Outlook.NameSpace
Dim objSyncs As Outlook.SyncObjects

' Start Outlook application
outapp = New Outlook.Application

'Initialise Namespace
olns = outapp.GetNamespace("MAPI")

'Create Syncobjects
objSyncs = olns.SyncObjects

The error is as follows:

"Outlook failed to get the Sync Objects. This is probably because
Outlook is not properly configured for offline mode."

Annoyingly, there is nothing on Microsoft's website about this issue.

Thanks to another contributor to this group, I now appear to have
solved this problem.

The answer is as follows:

You need to open the explorer object of the inbox before creating the
Syncobjects object as follows:

' Bug Fix
olns.Session.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox).GetExplorer()

'Create Syncobjects
objSyncs = olns.SyncObjects

Hope you find this useful
QUINO - 31 Oct 2006 16:49 GMT
I wriote the fix bug and I again have the same problem

> This message occurs when you instantiatiate the Outlook SyncObjects
> object:
[quoted text clipped - 36 lines]
>
> Hope you find this useful
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.