This project is read-only.
2
Vote

Unhandled exception while creating calendar entries in Google

description

The application worked perfectly while I authorized it with my Google account and set it to sync with a specific calendar. However when I clicked sync, it only read my Outlook entries but failed with an unhandled exception while trying to create those entries in Google. See attached screenshot. What could be going wrong?

file attachments

comments

nikhilkhade wrote Feb 5, 2014 at 1:43 PM

Oh and here are the details of the exception:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
at Microsoft.Office.Interop.Outlook._AppointmentItem.get_Body()
at OutlookGoogleSync.MainForm.SyncNow_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

OutlookGoogleSync
Assembly Version: 1.0.4867.37164
Win32 Version: 1.0.4867.37164

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/OutlookGoogleSync.exe

System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

Google.Apis.Calendar.v3
Assembly Version: 1.2.4573.23226
Win32 Version: 1.2.4573.23226

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/Google.Apis.Calendar.v3.DLL

Google.Apis
Assembly Version: 1.2.4573.23246
Win32 Version: 1.2.4573.23246

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/Google.Apis.DLL

9vvjr2n6
Assembly Version: 1.0.4867.37164
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

Microsoft.Office.Interop.Outlook
Assembly Version: 14.0.0.0
Win32 Version: 14.0.4760.1000

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll

CustomMarshalers
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

Google.Apis.Authentication.OAuth2
Assembly Version: 1.2.4573.23243
Win32 Version: 1.2.4573.23243

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/Google.Apis.Authentication.OAuth2.DLL

DotNetOpenAuth
Assembly Version: 4.0.0.11165
Win32 Version: 4.0.0.11165

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/DotNetOpenAuth.DLL

System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

System.Runtime.Serialization
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

SMDiagnostics
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5474 (Win7SP1GDR.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/log4net/1.2.10.0__1b44e1d426115821/log4net.dll

Newtonsoft.Json.Net35
Assembly Version: 4.0.2.0
Win32 Version: 4.0.2.13801

CodeBase: file:///C:/Users/khadeni1/Desktop/Tools/OutlookGoogleSync%20v1.0.9/Newtonsoft.Json.Net35.DLL

System.ServiceModel.Web
Assembly Version: 3.5.0.0
Win32 Version: 3.5.594.5458

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

System.ServiceModel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.4506.5452 (Win7SP1GDR.030729-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

System.ComponentModel.DataAnnotations
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)

CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

System.Xml.Linq
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1

CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

mabl wrote Jun 5, 2014 at 11:04 AM

I get exactly the same error message. Is there any way to get around this?

BradleyUffner wrote Jul 8, 2014 at 9:04 PM

Same issue for me. Looking to use this since the "official" calndear sync from Google is being discontinued.

nikhilkhade wrote Jul 8, 2014 at 10:33 PM

I finally got this working. The exception was occurring because of contents in the Description field. I think the Rich Text contents in it are unrecognizable.

Anyway I don't really care about the description field so I unchecked "Add Description" from the "When creating Google Calendar Entries..." section in the Settings and it now works fine.

AnkeshDave wrote May 8, 2015 at 3:06 PM

You can try Calendar Sync + (Plus). Its compatible with box x86 and x64 bit versions of office and offer a host of features for user to configure and use.
This application supports 2 Way Sync, Multiple Calendar Sync, Multiple Profiles and Sync configurations, Proxy Settings :)

PS : I am the one of the developers for CS+

Thanks and regards
Calendar Sync + Team