Problem syncing

Nov 19, 2014 at 4:24 PM
Hello,

I'm trying to sync my calender from Outlook to Google since yesterday, but it's never worked until now. It's always telling me not being able to sync, but it finds the entries in Outlook and Google.

After several trials, there is a .net error coming up with the following information:

Consulte el final de este mensaje para obtener más detalles sobre cómo invocar a la depuración
Just-In-Time (JIT) en lugar de a este cuadro de diálogo.

************** Texto de la excepción **************
System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en OutlookGoogleSync.MainForm.Sync_Click(Object sender, EventArgs e)
en OutlookGoogleSync.MainForm.ogstimer_Tick(Object sender, EventArgs e)
en System.Windows.Forms.Timer.OnTick(EventArgs e)
en System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
en System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Ensamblados cargados **************
mscorlib
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

OutlookGoogleCalendarSync
Versión del ensamblado: 1.0.5419.2603
Versión Win32: 1.0.11

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/OutlookGoogleCalendarSync.exe

System.Windows.Forms
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

System.Drawing
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

Microsoft.Office.Interop.Outlook
Versión del ensamblado: 14.0.0.0
Versión Win32: 14.0.4760.1000

Código base: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/14.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll

System.Xml
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

System.Configuration
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

mscorlib.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5485 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

System.Runtime.Serialization
Versión del ensamblado: 3.0.0.0
Versión Win32: 3.0.4506.5463 (Win7SP1GDR.030729-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

SMDiagnostics
Versión del ensamblado: 3.0.0.0
Versión Win32: 3.0.4506.5463 (Win7SP1GDR.030729-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

system.runtime.serialization.resources
Versión del ensamblado: 3.0.0.0
Versión Win32: 3.0.4506.5420 (Win7SP1.030729-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization.resources/3.0.0.0_es_b77a5c561934e089/System.Runtime.Serialization.resources.dll

CustomMarshalers
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_32/CustomMarshalers/2.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

Google.Apis.Calendar.v3
Versión del ensamblado: 1.2.4573.23226
Versión Win32: 1.2.4573.23226

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/Google.Apis.Calendar.v3.DLL

Google.Apis
Versión del ensamblado: 1.2.4573.23246
Versión Win32: 1.2.4573.23246

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/Google.Apis.DLL

System.Core
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.30729.5420 built by: Win7SP1

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

Google.Apis.Authentication.OAuth2
Versión del ensamblado: 1.2.4573.23243
Versión Win32: 1.2.4573.23243

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/Google.Apis.Authentication.OAuth2.DLL

DotNetOpenAuth
Versión del ensamblado: 4.0.0.11165
Versión Win32: 4.0.0.11165

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/DotNetOpenAuth.DLL

System.Web
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll

log4net
Versión del ensamblado: 1.2.10.0
Versión Win32: 1.2.10.0

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/log4net.DLL

Newtonsoft.Json.Net35
Versión del ensamblado: 4.0.2.0
Versión Win32: 4.0.2.13801

Código base: file:///C:/Users/thomas%20asten/AppData/Local/Apps/2.0/OT54MRKB.YM3/BKWVJ0K4.T3A/outl..tion_a30846ba3587a523_0001.0001_4206fbe4ab06078b/Newtonsoft.Json.Net35.DLL

System.ServiceModel.Web
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.594.5458

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

System.ServiceModel
Versión del ensamblado: 3.0.0.0
Versión Win32: 3.0.4506.5463 (Win7SP1GDR.030729-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

System.ComponentModel.DataAnnotations
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.30729.5420

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/3.5.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll

System.Data
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5483 (Win7SP1GDR.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

System.Xml.Linq
Versión del ensamblado: 3.5.0.0
Versión Win32: 3.5.30729.5420 built by: Win7SP1

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll

System.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5420 (Win7SP1.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_es_b77a5c561934e089/System.resources.dll

System.Windows.Forms.resources
Versión del ensamblado: 2.0.0.0
Versión Win32: 2.0.50727.5420 (Win7SP1.050727-5400)

Código base: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_es_b77a5c561934e089/System.Windows.Forms.resources.dll

************** Depuración JIT **************
Para habilitar la depuración Just In Time (JIT), el archivo de configuración de esta
aplicación o equipo (machine.config) debe tener el
valor jitDebugging establecido en la sección system.windows.forms.
La aplicación también se debe compilar con la depuración
habilitada

Por ejemplo:

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

Cuando esté habilitada la depuración JIT, cualquier excepción no controlada
se enviará al depurador JIT registrado en el equipo
en lugar de controlarlo mediante el cuadro de diálogo.



Is there any solution for this problem?
Please help.
Coordinator
Nov 19, 2014 at 9:51 PM
Hi tasten,
Thanks for reporting that - you're not the only person with the issue but I think I may have tracked it down.

Could you give v1.2.1 a go and let me know if it works. If not, I've added some logging in so it should shed some light on the problem - log file OGcalsync.log goes to the directory you are running the exe from.
Nov 21, 2014 at 2:27 PM
Hey,
Thank you very much for your quick reply.
I tried the new version and it still doesn't work for me.

I don't know how to attach a file here, but I uploaded it to dropbox:
https://www.dropbox.com/s/rdgj17pzm1bewen/OGcalsync.log?dl=0
Coordinator
Nov 25, 2014 at 5:49 PM
Thanks for the log. In case you haven't tried v1.2.1.1 yet, I think that may resolve the problem - it seemed to be due to the Sync direction not setting properly for you.

Just explicitly selecting "Outlook <=== Google" and then "Outlook ===> Google" may also fix it in v1.2.1 too?
Dec 2, 2014 at 3:47 PM
Sorry, it failed again with v1.2.1.2 and selecting the option explicitly after changing it once.

You can find the log here:
https://www.dropbox.com/s/rdgj17pzm1bewen/OGcalsync.log?dl=0

Thanks for your affords!
Coordinator
Dec 2, 2014 at 4:11 PM
OK, so it's progress - you're now onto a different issue being tackled on Issue #6.

If you'd like to try the hotfix posted on that issue, download it here:
https://www.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=outlookgooglecalendarsync&WorkItemId=6&FileAttachmentId=961361
Dec 2, 2014 at 4:17 PM
Cool! Thank you very much!
Seems like progress in the log, but still doesn't work in the end.

Updated log:
https://www.dropbox.com/s/rdgj17pzm1bewen/OGcalsync.log?dl=0
Coordinator
Dec 2, 2014 at 4:50 PM
Edited Dec 2, 2014 at 4:52 PM
From a quick Google, the problem you had appears to be intermittent. The free API quote with Google is 5 API calls/user/second - I wonder if you exceeded that.

Can you try resyncing a few times and see if it completes successfully? If so, I may have to add in a delay and retry when this error is encountered...

Also, turn on "Verbose output" to see if it's failing on the same item each time.
Dec 2, 2014 at 5:34 PM
I limited the entries to sync by limiting the days in the future and it worked without any problems...

Maybe it simply were too many entries to sync?
Dec 2, 2014 at 10:13 PM
I too was having issues with the number of days/items in the future (or past) that I wanted to sync.

I started with limiting the number of days; had to trim it to 15 days ahead and 3 days in the past.

It looks like there is an item ceiling that causes it to fail out. 146 items to sync seemed to be too much for the version before your hotfix.

It started working... so I replaced the original .exe with your hotfix posted above- bingo!

This is the first time I was able to sync up to 120 days with multiple deletions and additions since I downloaded 1.2.1.2.

See the logs:

https://onedrive.live.com/redir?resid=A5869599E4F4EC7F%21315140
Coordinator
Dec 5, 2014 at 1:19 PM
Thanks for those logs FireBert - it seems to confirm that the bug you were encountering was related to reclaiming all-day events, which was hot-fixed. I hope to release a version shortly with this hotfix included.
Marked as answer by phw198 on 12/5/2014 at 6:19 AM