Profiles - Unhandled exception when selecting 2nd profile from drop down
See original GitHub issueOGCS Version: v2.9.3.3
Edition: Portable
Sync Direction: O<->G
Bug Description
Profile - Unhandled exception when selecting 2nd profile from drop down.
Crash stacktrace
=========================== Error Details ==========================================
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '2' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.DomainUpDown.set_SelectedIndex(Int32 value)
at OutlookGoogleCalendarSync.Forms.Main.UpdateGUIsettings_Profile() in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\Forms\MainForm.cs:line 470
at OutlookGoogleCalendarSync.SettingsStore.Calendar.SetActive() in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\SettingsStore\Calendar.cs:line 203
at OutlookGoogleCalendarSync.Forms.Main.ddProfile_SelectedIndexChanged(Object sender, EventArgs e) in C:\Users\Paul\Git\OutlookGoogleCalendarSync\src\OutlookGoogleCalendarSync\Forms\MainForm.cs:line 1061
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
OutlookGoogleCalendarSync
Assembly Version: 2.9.8093.33009
Win32 Version: 2.9.3.3
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/OutlookGoogleCalendarSync.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
log4net
Assembly Version: 2.0.12.0
Win32 Version: 2.0.12.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/log4net.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4435.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Google.Cloud.Logging.Log4Net
Assembly Version: 2.5.0.0
Win32 Version: 2.5.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Cloud.Logging.Log4Net.DLL
----------------------------------------
Google.Cloud.Logging.V2
Assembly Version: 2.3.0.0
Win32 Version: 2.3.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Cloud.Logging.V2.DLL
----------------------------------------
Google.Protobuf
Assembly Version: 3.17.3.0
Win32 Version: 3.17.3.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Protobuf.DLL
----------------------------------------
Google.Cloud.Logging.Type
Assembly Version: 2.1.0.0
Win32 Version: 2.1.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Cloud.Logging.Type.DLL
----------------------------------------
Google.Api.Gax
Assembly Version: 2.10.0.0
Win32 Version: 2.10.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Api.Gax.DLL
----------------------------------------
Google.Api.CommonProtos
Assembly Version: 1.7.0.0
Win32 Version: 1.7.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Api.CommonProtos.DLL
----------------------------------------
Google.Api.Gax.Grpc
Assembly Version: 2.10.0.0
Win32 Version: 2.10.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Api.Gax.Grpc.DLL
----------------------------------------
Google.Apis.Auth
Assembly Version: 1.54.0.0
Win32 Version: 1.54.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Apis.Auth.DLL
----------------------------------------
Google.Apis.Core
Assembly Version: 1.54.0.0
Win32 Version: 1.54.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Apis.Core.DLL
----------------------------------------
Grpc.Core
Assembly Version: 1.0.0.0
Win32 Version: 1.22.1.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Grpc.Core.DLL
----------------------------------------
Grpc.Core.Api
Assembly Version: 1.0.0.0
Win32 Version: 1.22.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Grpc.Core.Api.DLL
----------------------------------------
Grpc.Auth
Assembly Version: 1.0.0.0
Win32 Version: 1.22.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Grpc.Auth.DLL
----------------------------------------
System.Net.Http
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 13.0.0.0
Win32 Version: 13.0.1.25517
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
Squirrel
Assembly Version: 1.9.0.0
Win32 Version: 1.9.0.1
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Squirrel.DLL
----------------------------------------
NuGet.Squirrel
Assembly Version: 3.0.0.0
Win32 Version: 3.0.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/NuGet.Squirrel.DLL
----------------------------------------
Splat
Assembly Version: 1.6.2.0
Win32 Version: 1.6.2
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Splat.DLL
----------------------------------------
SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll
----------------------------------------
System.ServiceModel.Internals
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4455.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll
----------------------------------------
NodaTime
Assembly Version: 2.4.13.0
Win32 Version: 2.4.13.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/NodaTime.DLL
----------------------------------------
Microsoft.mshtml
Assembly Version: 7.0.3300.0
Win32 Version: 7.0.3300.0
CodeBase: file:///C:/WINDOWS/assembly/GAC/Microsoft.mshtml/7.0.3300.0__b03f5f7f11d50a3a/Microsoft.mshtml.dll
----------------------------------------
Microsoft.Office.Interop.Outlook
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4569.1507
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.Office.Interop.Outlook/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Outlook.dll
----------------------------------------
office
Assembly Version: 15.0.0.0
Win32 Version: 15.0.4613.1000
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll
----------------------------------------
Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
CustomMarshalers
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------
Google.Apis.Calendar.v3
Assembly Version: 1.54.0.2410
Win32 Version: 1.54.0.2410
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Apis.Calendar.v3.DLL
----------------------------------------
Google.Apis
Assembly Version: 1.54.0.0
Win32 Version: 1.54.0.0
CodeBase: file:///D:/_NAS/Users/Sam/Apps/OGCS/Google.Apis.DLL
----------------------------------------
System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4470.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.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.
=========================== END Error Details ==========================================
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Fix found for crash issue affecting Logitech Onboard ...
To fix Onboard Memory Manager crashing on launch with Unhandled exception error/BatteryStatus message: Open Start menu and type 'Color ...
Read more >exception was thrown during licensing process Update case
From the Credentials drop-down list, select a credentials record for a user account that has Full Control permissions on the shared folder. To ......
Read more >I have 2 accounts in my outlook, but for some reasons i can ...
i have 2 accounts in my outlook, but for some reasons i can only see 1 account from the dropdown list of the...
Read more >Enable event logging of unhandled exceptions in ASP.NET
In IIS Manager, right-click the local computer, and then click Properties. Select the Enable Direct Metabase Edit check box, and then click OK....
Read more >Unhandled exception popup font - Developer Community
You can change the font and size of the text under Options -> Environment -> Fonts and Colors . Select "Environment" in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v2.9.3.7 appears to have corrected the problem.
The error is consistent. The profiles are configured for bi-direction. Creating & deleting the third profile fixes the problem, however, it comes back after restarting the application.
To duplicate the error…
Word doc attached with my configuration OGCS Issue 1396.zip OGcalsync.log