#315 Unable to cast COM object

v3.5
closed-out-of-date
nobody
5
2013-07-06
2012-05-23
Jonathan
No

---------------------------
GO Contact Sync Mod
---------------------------
Sorry, an unexpected error occured.
Please support us fixing this problem. Go to
https://sourceforge.net/projects/googlesyncmod/ and use the Tracker!
Hint: You can copy this message by pressing CTRL-C in the dialog box.
Please check first if error has already been reported.
Program Version: 3.5.15.42675

Error Details:
System.InvalidCastException: Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.NameSpaceClass' to interface type 'Microsoft.Office.Interop.Outlook._NameSpace'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063002-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).

at Microsoft.Office.Interop.Outlook.NameSpaceClass.GetFolderFromID(String EntryIDFolder, Object EntryIDStore)

at GoContactSyncMod.Syncronizer.CreateOutlookInstance() in C:\Users\saller\projects\googlesyncmod\trunk\GoogleContactsSync\Syncronizer.cs:line 270

at GoContactSyncMod.Syncronizer.LoginToOutlook() in C:\Users\saller\projects\googlesyncmod\trunk\GoogleContactsSync\Syncronizer.cs:line 169

at GoContactSyncMod.SettingsForm.Sync_ThreadStarter() in C:\Users\saller\projects\googlesyncmod\trunk\GoogleContactsSync\SettingsForm.cs:line 456
---------------------------
OK
---------------------------

Discussion

  • Mike Brown
    Mike Brown
    2012-05-27

    I had the same error today. I am using Version 3.5.14.41742 on windows vista home premium sp2

    Here is the info in the program's log window:

    [5/26/2012 9:00:17 PM | Error] Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.NameSpaceClass' to interface type 'Microsoft.Office.Interop.Outlook._NameSpace'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063002-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
    [5/26/2012 9:00:17 PM | Error] Sync failed.

    I will also attach a screenshot of the error message.

     
  • Mike Brown
    Mike Brown
    2012-05-27

    I can't attach a file so here is a link to the screenshot of the program's error dialog which has some additional information. The instructions in the error dialog said to use control-C to copy the contents but this would not work on my system.

    http://dl.dropbox.com/u/5143151/gosyncError26May12.png

     
  • same problem on Outlook 2007.

    [7/12/2012 2:21:39 PM | Information] Sync started (Default).
    [7/12/2012 2:21:39 PM | Information] Connecting to Google...
    [7/12/2012 2:21:40 PM | Information] Connecting to Outlook...
    [7/12/2012 2:21:40 PM | Error] Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.NameSpaceClass' to interface type 'Microsoft.Office.Interop.Outlook._NameSpace'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{00063002-0000-0000-C000-000000000046}' failed due to the following error: The application called an interface that was marshalled for a different thread. (Exception from HRESULT: 0x8001010E (RPC_E_WRONG_THREAD)).
    [7/12/2012 2:21:40 PM | Error] Sync failed.

     
  • Ronny B.
    Ronny B.
    2013-07-06

    • Status: open --> closed-out-of-date