Can't correctly open or import dl4.0 logbook

Locked
sbonzix
Posts: 3
Joined: Thu Feb 25, 2010 10:57

Can't correctly open or import dl4.0 logbook

Post by sbonzix »

Hi, I installed RC1 on WinXP SP3, but no matter what I try to do:
  • open a DL4 logbook;
  • create a new DL5 logbook and import a DL4 logbook into it;
  • create a new DL5 logbook and import a SmartTrak logbook into it,
the import goes apparently fine, but when I try to view the logbook I keep getting an "Unhandled exception" error message (see attachment).
Error message
Error message
dl5.png (7.08 KiB) Viewed 15915 times
Details of the error message:

Code: Select all

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

************** Exception Text **************
System.InvalidCastException: Cast non valido dalla stringa "18.02.2010" al tipo 'Date'.
   at Microsoft.VisualBasic.CompilerServices.Conversions.ToDate(String Value)
   at Divinglog.frmLogbook.LoadDive(Int64 DiveID)
   at Divinglog.frmLogbook.lstDives_SelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ListView.WmReflectNotify(Message& m)
   at System.Windows.Forms.ListView.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.3603 (GDR.050727-3600)
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Divelog
    Assembly Version: 4.9.1.12
    Win32 Version: 4.9.1.12
    CodeBase: file:///C:/Program%20Files/Diving%20Log%205.0/Divelog.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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.3082 (QFE.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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/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/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/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/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/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/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/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/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/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/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/Diving%20Log%205.0/PropertyGridEx.DLL
----------------------------------------
System.Design
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    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/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/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/Diving%20Log%205.0/Language.DLL
----------------------------------------
System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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/Diving%20Log%205.0/System.Data.SQLite.DLL
----------------------------------------
System.Transactions
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
    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.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Microsoft.VisualBasic.resources
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.3053 (netfxsp.050727-3000)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic.resources/8.0.0.0_it_b03f5f7f11d50a3a/Microsoft.VisualBasic.resources.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: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Can't correctly open or import dl4.0 logbook

Post by divinglog »

Hi

Please email me or attach here a screenshot of your Windows date and time settings (see below)

Thank you,
Sven
Region.jpg
Region.jpg (61.99 KiB) Viewed 15910 times
sbonzix
Posts: 3
Joined: Thu Feb 25, 2010 10:57

Re: Can't correctly open or import dl4.0 logbook

Post by sbonzix »

Thanks for your quick reply.
Here we go:
Regional settings
Regional settings
dl5_2.png (15.86 KiB) Viewed 15909 times
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Can't correctly open or import dl4.0 logbook

Post by divinglog »

This is really confusing, everything looks normal and I cannot reproduce this bug when I set my computer to the same date/time settings. The error message says it cannot convert the text string to the date, but the date format is exactly as in your regional settings. Normally the conversion should just work. Do you have any other idea what's maybe different on your machine regarding date settings? Can you email me your logbook file? Please try also to create a new empty logbook file in version 5.0 and add one dive manually. Let's see if this works.
sbonzix
Posts: 3
Joined: Thu Feb 25, 2010 10:57

Re: Can't correctly open or import dl4.0 logbook

Post by sbonzix »

Hello,
I've tried creating a new logbook and I get the same error when I click on "New dive" (i.e. when I try to manually add a new dive).

I don't really know what could be "special" in my machine date settings, apart from the fact that I use an English version of XP and the regional options are set to Italian (which shouldn't be a problem, though).

Anyway, it all works if I set regional options to US English. Not a big problem, as far as I know, just a bit annoying.
divinglog
Site Admin
Posts: 5768
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Can't correctly open or import dl4.0 logbook

Post by divinglog »

Hi

This is indeed no nice solution. Maybe it is a bug in .NET Framework in the date parse routine. When I set my German Windows to Italian it still works fine in Diving Log 5.0. I'll do another test on XP, but it should make no difference. I have no English Windows here, but it should be the same. So I'm sorry, I currently have no idea why it fails in this case. Maybe I'll find a workaround.

Best regards,
Sven
Locked