Opened 12 years ago

Closed 10 years ago

#984 closed defect (fixed)

Specified cast is not valid Exception when executing Order wizard on some orders select in CT Order grid

Reported by: Mark J. Millard Owned by: Pete Cyr
Priority: medium Milestone: Post 1.0
Component: CT Order Wizard Version: 1.9.6.41 CT
Severity: Keywords: Cast
Cc: Marty.Reisinger@… Database Engine: SQL Server
Operating System: Windows 7 Ultimate 64 bit

Description

nc7lb and I have caused an exception to be thrown when certain "OLD" GRIN orders are selected in the order grid view and the Order Wizard executed. One order number that consistently gives the exception on npgsWEB and ggdaffy is 61108. Continue seems to allow the CT and Order Wizard to continue to be used.

Specified cast is not valid.

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

Exception Text
System.InvalidCastException: Specified cast is not valid.

at OrderWizard.OrderWizard.OrderItemsContainAlerts()
at OrderWizard.OrderWizard._orderRequestBindingSource_CurrentChanged(Object sender, EventArgs e)
at OrderWizard.OrderWizard.OrderWizard_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
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.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.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.5485 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll


GRINGlobal-CuratorTool

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal-CuratorTool.exe


System.Windows.Forms

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


System.Drawing

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


System.Data

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll


System.Xml

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll


GRINGlobal.Client.Common

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/GRINGlobal.Client.Common.DLL


System.Core

Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.5420 built by: Win7SP1
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll


System.Configuration

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


AccessionWizard

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/AccessionWizard.dll


CooperatorWizard

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/CooperatorWizard.dll


OrderWizard

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Wizards/OrderWizard.dll


System.Web.Services

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll


-ruryzet

Assembly Version: 1.9.6.41
Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll


Accessibility

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll


System.Transactions

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
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.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll


AccessionForm

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/AccessionForm.dll


CrystalDecisions.CrystalReports.Engine

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll


CrystalDecisions.Shared

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll


CrystalDecisions.ReportAppServer.Controllers

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll


CrystalDecisions.ReportAppServer.DataDefModel

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll


CrystalDecisions.ReportAppServer.ClientDoc

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll


CrystalDecisions.ReportAppServer.CubeDefModel

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll


CrystalDecisions.ReportAppServer.ReportDefModel

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll


CrystalDecisions.ReportAppServer.CommLayer

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll


CrystalDecisions.ReportAppServer.CommonControls

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommonControls/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommonControls.dll


CrystalDecisions.ReportAppServer.CommonObjectModel

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommonObjectModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommonObjectModel.dll


CrystalDecisions.ReportAppServer.DataSetConversion

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll


CrystalDecisions.ReportAppServer.ObjectFactory

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ObjectFactory/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ObjectFactory.dll


CrystalDecisions.ReportAppServer.Prompting

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Prompting/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Prompting.dll


CrystalDecisions.ReportAppServer.XmlSerialize

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll


CrystalDecisions.ReportSource

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll


System.Web

Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
CodeBase: ​file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll


CrystalDecisions.Windows.Forms

Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: ​file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll


FlashControlV71

Assembly Version: 1.0.3187.32366
Win32 Version: 1.0.3187.32366
CodeBase: ​file:///C:/Windows/assembly/GAC/FlashControlV71/1.0.3187.32366__692fbea5521e1304/FlashControlV71.dll


ShockwaveFlashObjects

Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: ​file:///C:/Windows/assembly/GAC/ShockwaveFlashObjects/1.0.0.0__692fbea5521e1304/ShockwaveFlashObjects.dll


ImageForm

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/ImageForm.dll


InventoryForm

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/InventoryForm.dll


OrderForm

Assembly Version: 1.9.6.41
Win32 Version: 1.9.6.41
CodeBase: ​file:///C:/Program%20Files%20(x86)/GRIN-Global/GRIN-Global%20Curator%20Tool/Forms/OrderForm.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.

Attachments (1)

Ticket #984 Cast Exception on Order Wizard 2014-12-15.png​ (161.9 KB ) - added by Mark J. Millard 12 years ago.
Cast Exception

Download all attachments as: .zip

Change History (6)

by Mark J. Millard, 12 years ago

Cast Exception

comment:1 by Mark J. Millard, 12 years ago

Type: enhancement → defect

comment:2 by Mark J. Millard, 11 years ago

This is still present in the NPGS live version of the CT 1.9.6.41 on 2015-11-24

comment:3 by Mark J. Millard, 11 years ago

These order numbers give me the problem.

272984
273823
274071

These orders do not give me the problem.

271814
273305
273306

When the exception occurs just continue and things seem to work ok.

You can bring up with a find in the wizard directly and the wizard does not through the error.

comment:4 by Mark J. Millard, 10 years ago

Status: new → addressed

Release notes for 1.9.6.42 indicate this has been fixed.

comment:5 by Mark J. Millard, 10 years ago

Resolution: → fixed
Status: addressed → closed

Appears to still work in version 1.9.6.43. Closing ticket.

Note: See TracTickets for help on using tickets.