add new task       

Task ID:  217  "When I click on the clock module. I get the follwoing unhandled exception error. Cast from string "31/12/1993" to type 'Date' is not valid"    
 
Created by admin on 2006-10-03 12:18 AM, 4431 days ago
Project:  User Interface
Category:  Bug
Priority:  high
Assigned to:  hol353  
Status:  closed
Apsim Version:5.0
Your Name:
Contact Details:
 
 

show inline images      show change history

 comment 30651 posted by hol353 on 2009-04-14 10:33 AM, 3507 days ago 
Fixed in Apsim7
 comment 213 posted by admin on 2006-10-03 12:18 AM, 4431 days ago 
"When I click on the clock module. I get the follwoing unhandled exception error. Cast from string "31/12/1993" to type 'Date' is not valid710  STATUS   Unchecked  (new line);REPORTED BY   Biggs, Jody  DATE (new line);REPORTED      (new line);ASSIGNED TO   Not Assigned (Unchecked)  5/24/2006  (new line);   (new line);DESCRIPTION   When I click on the clock module. I get the follwoing unhandled exception error. Cast from string "31/12/1993" to type 'Date' is not valid Followed by these details: 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 from string "31/12/1993" to type 'Date' is not valid. at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value, CultureInfo culture) at Microsoft.VisualBasic.CompilerServices.DateType.FromString(String Value) at APSIMUI.ApsimUIController.SetCellType(SheetView Grid, Int32 row, Int32 col, APSIMData Prop) at APSIMUI.GenericUI.Refresh() at VBGeneral.BaseView.set_Controller(BaseController Value) at VBGeneral.ExplorerUI.ShowUI(APSIMData Data) at VBGeneral.ExplorerUI.OnSelectionChanged() at VBGeneral.NotifyEventHandler.Invoke() at VBGeneral.BaseController.set_SelectedPaths(StringCollection Paths) at VBGeneral.DataTree.OnAfterSelect(Object sender, TreeViewEventArgs e) at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e) at System.Windows.Forms.TreeView.TvnSelected(NMTREEVIEW* nmtv) at System.Windows.Forms.TreeView.WmNotify(Message& m) at System.Windows.Forms.TreeView.WndProc(Message& m) at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/microsoft.net/framework/v1.1.4322/mscorlib.dll ---------------------------------------- APSIMUI Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/APSIMUI.exe ---------------------------------------- System.Windows.Forms Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll ---------------------------------------- System Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll ---------------------------------------- VBGeneral Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/VBGeneral.DLL ---------------------------------------- Xceed.Chart Assembly Version: 3.0.100.0 Win32 Version: 3.0.100.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/Xceed.Chart.DLL ---------------------------------------- Xceed.SmartUI Assembly Version: 3.1.123.0 Win32 Version: 3.1.123.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/Xceed.SmartUI.DLL ---------------------------------------- Microsoft.VisualBasic Assembly Version: 7.0.5000.0 Win32 Version: 7.10.6001.4 CodeBase: file:///c:/winnt/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll ---------------------------------------- System.Drawing Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll ---------------------------------------- Xceed.SmartUI.Controls Assembly Version: 3.1.123.0 Win32 Version: 3.1.123.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/Xceed.SmartUI.Controls.DLL ---------------------------------------- Xceed.SmartUI.UIStyle Assembly Version: 3.1.123.0 Win32 Version: 3.1.123.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/Xceed.SmartUI.UIStyle.DLL ---------------------------------------- System.Xml Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/assembly/gac/system.xml/1.0.5000.0__b77a5c561934e089/system.xml.dll ---------------------------------------- Soil Assembly Version: 2.0.0.0 Win32 Version: 2.0.0.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/Soil.DLL ---------------------------------------- Accessibility Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.573 CodeBase: file:///c:/winnt/assembly/gac/accessibility/1.0.5000.0__b03f5f7f11d50a3a/accessibility.dll ---------------------------------------- FarPoint.Win.Spread Assembly Version: 2.0.1.0 Win32 Version: 2.0.1.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/FarPoint.Win.Spread.DLL ---------------------------------------- FarPoint.Win Assembly Version: 2.0.1.0 Win32 Version: 2.0.1.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/FarPoint.Win.DLL ---------------------------------------- System.Data Assembly Version: 1.0.5000.0 Win32 Version: 1.1.4322.2032 CodeBase: file:///c:/winnt/assembly/gac/system.data/1.0.5000.0__b77a5c561934e089/system.data.dll ---------------------------------------- FarPoint.CalcEngine Assembly Version: 2.0.4.0 Win32 Version: 2.0.4.0 CodeBase: file:///C:/Program%20Files/Apsim50/Bin/FarPoint.CalcEngine.DLL ---------------------------------------- ************** JIT Debugging ************** To enable just in time (JIT) debugging, the config file for this application or machine (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: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the machine rather than being handled by this dialog.  (new line);ACTIVITY   Trying to access the clock module to set start date. I get the error as soon as I click on the module.  (new line);WORKAROUND   Haven't found one.  (new line);   (new line);APPLICATION   Apsim User Interface  VERSION   5.0  (new line);PRIORITY   High  REPEATABLE   True  (new line);Version: 5.0Found By:Rob GratwickContact:"