5.4.19 - clicking on an appointment in the agenda crashes OD
Posted: Thu Dec 27, 2007 3:46 pm
I've just downloaded and built 5.4.19 and cannot get it to run. I'm getting an exception 'cannot convert System.SByte to System.Byte' that makes OD crash whenever I click on an appointment in the agenda. Using the debugger, it stops on line 204, in dataObjectFactory.cs. Just to be sure, I've downloaded 5.3, build it, and it works just fine.
Here is the full error message:
System.ArgumentException was unhandled
Message="Object of type 'System.SByte' cannot be converted to type 'System.Byte'."
Source="mscorlib"
StackTrace:
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
at System.Reflection.FieldInfo.SetValue(Object obj, Object value)
at OpenDental.DataAccess.DataObjectFactory`1.CreateObject(IDataReader reader) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 204
at OpenDental.DataAccess.DataObjectFactory`1.CreateObjects(IDataReader reader) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 358
at OpenDental.DataAccess.DataObjectFactory`1.CreateObjects(String query) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 55
at OpenDental.Patients.SubmitAndFill(String command) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Data Interface\Patients.cs:line 61
at OpenDental.Patients.GetPat(Int32 patNum) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Data Interface\Patients.cs:line 57
at OpenDental.ContrAppt.RefreshModulePatient(Int32 patNum) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\ContrAppt.cs:line 1101
at OpenDental.ContrAppt.ContrApptSheet2_MouseDown(Object sender, MouseEventArgs e) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\ContrAppt.cs:line 2010
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.UserControl.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at OpenDental.FormOpenDental.Main() in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\FormOpenDental.cs:line 1183
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Here is the full error message:
System.ArgumentException was unhandled
Message="Object of type 'System.SByte' cannot be converted to type 'System.Byte'."
Source="mscorlib"
StackTrace:
at System.RuntimeType.CheckValue(Object value, Binder binder, CultureInfo culture, BindingFlags invokeAttr)
at System.Reflection.RtFieldInfo.InternalSetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture, Boolean doVisibilityCheck, Boolean doCheckConsistency)
at System.Reflection.RtFieldInfo.SetValue(Object obj, Object value, BindingFlags invokeAttr, Binder binder, CultureInfo culture)
at System.Reflection.FieldInfo.SetValue(Object obj, Object value)
at OpenDental.DataAccess.DataObjectFactory`1.CreateObject(IDataReader reader) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 204
at OpenDental.DataAccess.DataObjectFactory`1.CreateObjects(IDataReader reader) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 358
at OpenDental.DataAccess.DataObjectFactory`1.CreateObjects(String query) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDentBusiness\DataAccess\DataObjectFactory.cs:line 55
at OpenDental.Patients.SubmitAndFill(String command) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Data Interface\Patients.cs:line 61
at OpenDental.Patients.GetPat(Int32 patNum) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Data Interface\Patients.cs:line 57
at OpenDental.ContrAppt.RefreshModulePatient(Int32 patNum) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\ContrAppt.cs:line 1101
at OpenDental.ContrAppt.ContrApptSheet2_MouseDown(Object sender, MouseEventArgs e) in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\ContrAppt.cs:line 2010
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.UserControl.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.UserControl.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at OpenDental.FormOpenDental.Main() in C:\Documents and Settings\mfabre\Desktop\ODSource 5.4.x\OpenDental\Main Modules\FormOpenDental.cs:line 1183
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()