Unhandled exception in RC2

Locked
terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Unhandled exception in RC2

Post by terrylowe » Mon Mar 01, 2010 01:01

Hi...
I was cruising along on Dilogs and noticed that the dates of some of my dives are not listed correctly on the website.

I hit Sync then dilogs and then click on Dives and I get an error...

IF I hit CONTINUE, I am able to upload my dives and it corrected the dates on my dives online.

This is a reproducible error dialog.

Unhandled exception has occurred n your application. If you click Continue, the application will ignore htis error and attempt to continue. If you click Quit, the application will close immediately.

String was not recognized as a valid Date Time

When I click on the Details, this is what I get below.


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

************** Exception Text **************
System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at Divinglog.Sync.Dilogs.Dilogs.ParseDives(String strXML)
at Divinglog.Sync.Dilogs.Dilogs.DownloadWorker_DoWork(Object sender, DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Divelog
Assembly Version: 4.9.2.0
Win32 Version: 4.9.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Divelog.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
DevExpress.OfficeSkins.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/DevExpress.OfficeSkins.v9.3.DLL
----------------------------------------
DevExpress.Utils.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/DevExpress.Utils.v9.3.DLL
----------------------------------------
Infragistics2.Win.v9.2
Assembly Version: 9.2.20092.1003
Win32 Version: 9.2.20092.1003
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Infragistics2.Win.v9.2.DLL
----------------------------------------
Infragistics2.Win.UltraWinGauge.v9.2
Assembly Version: 9.2.20092.1003
Win32 Version: 9.2.20092.1003
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Infragistics2.Win.UltraWinGauge.v9.2.DLL
----------------------------------------
Infragistics2.Win.UltraWinToolbars.v9.2
Assembly Version: 9.2.20092.1003
Win32 Version: 9.2.20092.1003
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Infragistics2.Win.UltraWinToolbars.v9.2.DLL
----------------------------------------
DevExpress.XtraLayout.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/DevExpress.XtraLayout.v9.3.DLL
----------------------------------------
Infragistics2.Shared.v9.2
Assembly Version: 9.2.20092.1003
Win32 Version: 9.2.20092.1003
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Infragistics2.Shared.v9.2.DLL
----------------------------------------
DevExpress.Data.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/DevExpress.Data.v9.3.DLL
----------------------------------------
DevExpress.XtraEditors.v9.3
Assembly Version: 9.3.2.0
Win32 Version: 9.3.2.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/DevExpress.XtraEditors.v9.3.DLL
----------------------------------------
Divinglog.Controls
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Divinglog.Controls.DLL
----------------------------------------
PropertyGridEx
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/PropertyGridEx.DLL
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Design
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Infragistics2.Win.UltraWinExplorerBar.v9.2
Assembly Version: 9.2.20092.1003
Win32 Version: 9.2.20092.1003
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Infragistics2.Win.UltraWinExplorerBar.v9.2.DLL
----------------------------------------
ComponentFactory.Krypton.Toolkit
Assembly Version: 4.1.0.0
Win32 Version: 4.1.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/ComponentFactory.Krypton.Toolkit.DLL
----------------------------------------
Language
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/Language.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.60.0
Win32 Version: 1.0.60.0
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/System.Data.SQLite.DLL
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
ZeroconfService
Assembly Version: 0.5.0.4
Win32 Version: 0.5.0.4
CodeBase: file:///C:/Program%20Files%20(x86)/Diving%20Log%205.0/ZeroconfService.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.

divinglog
Site Admin
Posts: 4966
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Unhandled exception in RC2

Post by divinglog » Mon Mar 01, 2010 18:35

Hi Terry

It looks like the wrong dates from Dilogs are the cause of this problem. Can you email mit this file (On Windows XP the location is different):

C:\ProgramData\Diving Log\DilogsCache\getDives.xml

I have not changed the Dilogs client, so I think something on the server side has changed.

Thank you,
Sven

divinglog
Site Admin
Posts: 4966
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Unhandled exception in RC2

Post by divinglog » Tue Mar 02, 2010 13:40

Hi Terry

I don't need the file anymore, I found the location and added another check to see if it is a valid date string. With the next release it shouldn't crash anymore.

Thank you!
Sven

terrylowe
Posts: 40
Joined: Sun Aug 12, 2007 03:33
Location: Hattiesburg, MS USA
Contact:

Re: Unhandled exception in RC2

Post by terrylowe » Tue Mar 02, 2010 22:43

LOL. You amaze me at how quickly you find and fix a problem. Glad to help!

Terry

Locked