After applying the newest service release I get several strangae errors, e.g:
Binding a dataset as datasource for a ultracombo causes validation with follwing error:
Normal 0 21 false false false DE X-NONE X-NONE
Fehler:
Das Objekt des Typs "Infragistics.Win.UltraWinGrid.UltraCombo" kann nicht in Typ "Infragistics.Win.UltraWinGrid.UltraGrid" umgewandelt werden.
System.InvalidCastException
Details:
bei Infragistics.Win.UltraWinGrid.UltraGridBand.FitColumnsToWidth(Int32 right)
bei Infragistics.Win.UltraWinGrid.ViewStyleBase.FitColumnsToWidth()
bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics(Int32 pass)
bei Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics()
bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper()
bei Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics()
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands()
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated(BindingManagerBase bindingManager)
bei Infragistics.Win.UltraWinGrid.UltraGridLayout.ListManagerUpdated()
bei Infragistics.Win.UltraWinGrid.UltraGridBase.Set_ListManager(Object newDataSource, String newDataMember)
bei Infragistics.Win.UltraWinGrid.UltraGridBase.set_DataSource(Object value)
UltraDateTimeEditor:
The DateTime property cannot be set to a value that is outside the range determined by the MinDate and MaxDate properties.
System.ArgumentException
bei Infragistics.Win.UltraWinEditors.UltraDateTimeEditor.set_DateTime(DateTime value)
bei IMSCargo2008.frmAuftrag.InitializeComponent() in D:\DatenCenter\Entwicklung\VS2008\Visual Studio 2008\Projects\IMSCargo\IMSCargo2008\IMSCargo2008\Formulare\Auftrag\frmAuftrag.Designer.vb:Zeile 977.
bei IMSCargo2008.frmAuftrag..ctor() in D:\DatenCenter\Entwicklung\VS2008\Visual Studio 2008\Projects\IMSCargo\IMSCargo2008\IMSCargo2008\Formulare\Auftrag\frmAuftrag.vb:Zeile 58.
bei IMSCargo2008.frmMenu.UltraToolbarsManager1_ToolClick(Object sender, ToolClickEventArgs e)
The range was not changed and is the default.....
Well, it's a bit hard to decipher the error message here since it's not in English (is that German?), but it looks like something is trying to cast an UltraCombo into an UltraGrid somewhere. That could be a bug in the control.
Can you reproduce this in a small sample project and post it here so we can take a look?
This is the line causing the error:
.DataSource = StammdatenDiverse.Steuersatz(
"Steuersatz", ISOCode)
The "StammDatenDiverse.Steuersatz" is a function which return a simple dataset. In the previous version (2029) and all before (from 2008.2) there was no problem with the combo, also we only updated with the service release and don't made any changes of the code.......
I have not seen that error before and I'm not aware of any issues that would cause something like this. Your best bet is to try to duplicate it in a small sample project so we can check it out.
Hi Mike,
I've encountered similar error and hopefully it would help you decipher the error because it is in English. The following error message shows:
"Unable to cast object of type 'Infragistics.Win.UltraWinGrid.UltraCombo' to type 'Infragistics.Win.UltraWinGrid.UltraGrid'.
on this line of code:
reportNamerForm.ShowDialog(this).
When I look at the View Details the Stack Trace shows the following:
at Infragistics.Win.UltraWinGrid.UltraGridBand.FitColumnsToWidth(Int32 right) at Infragistics.Win.UltraWinGrid.ViewStyleBase.FitColumnsToWidth() at Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics(Int32 pass) at Infragistics.Win.UltraWinGrid.BandsCollection.CalculateBandMetrics() at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetricsHelper() at Infragistics.Win.UltraWinGrid.ColScrollRegionsCollection.InitializeMetrics() at Infragistics.Win.UltraWinGrid.UltraGridLayout.ApplyLoadedBands() at Infragistics.Win.UltraWinGrid.UltraGridBase.VerifyDataSourceAttached() at Infragistics.Win.UltraWinGrid.UltraGridBase.OnCreateControl() at Infragistics.Win.UltraWinGrid.UltraCombo.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) 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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow) at System.Windows.Forms.Control.SetVisibleCore(Boolean value) at System.Windows.Forms.Form.SetVisibleCore(Boolean value) at System.Windows.Forms.Control.set_Visible(Boolean value) 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.RunDialog(Form form) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at SmartGUINet.WinReport.Forms.ReportDesigner.NewReport() in E:\SmartGUI\2009 Volume 1\SmartGUINetReport\Forms\ReportDesigner.cs:line 2094 at SmartGUINet.WinReport.Forms.ReportDesigner.ultraStatusBar1_ButtonClick(Object sender, PanelEventArgs e) in E:\SmartGUI\2009 Volume 1\SmartGUINetReport\Forms\ReportDesigner.cs:line 1780 at Infragistics.Win.UltraWinStatusBar.UltraStatusBar.OnButtonClick(PanelEventArgs e) at Infragistics.Win.UltraWinStatusBar.UltraStatusBar.FireEvent(StatusBarEventIds id, EventArgs e)
Attached is more info about the error:
Hope this helps.
R/ronald
Hi,
It looks like this is a bug in the Hot Fix that occurs when you set the AutoFitStyle property on the Combo. This will be fixed in the next service release.In the mean time you can work around it by setting AutoFitStyle to the default.
We just ran into this bug. Do you know the timeframe when the fix will be released? If it is going to be a while, then how do I downgrade to 2029? Do I just uninstall 2039?
I went back to hotfix 2029 which is working. I figure I'll just wait for 2009 Vol 2 before I venture to upgrade again.
just remark out the line and manually set the column widths, much simpler than all the reinstall
I see it! Thanks.
you must check the "Show Updates", then you will see the Hotfix
What was the name in uninstall programs for hotfix 2039? I don't see anything except the install of the major version which is why I uinstalled the whole thing.