Out of the blue I am getting that error. If I disable the ribbon it goes away, but as soon as I enable it I get the error. Here is the entire stack trace. Any ideas?
----------------------------------------
Exception Source: System.DrawingException Type: System.ArgumentExceptionException Message: Parameter is not valid.Exception Target Site: AddPath
---- Stack Trace ---- System.Drawing.Drawing2D.GraphicsPath.AddPath(addingPath As GraphicsPath, connect As Boolean) QADB.EXE: N 240285 Infragistics.Win.UltraWinToolbars.QatTopAreaUIElement.GetLeftCurvePath(rect As Rectangle, isBorderPath As Boolean) QADB.EXE: N 01018 Infragistics.Win.UltraWinToolbars.QatTopAreaUIElement.GetCurvedRegion(rect As Rectangle, isApplicationMenuVisible As Boolean) QADB.EXE: N 00097 Infragistics.Win.UltraWinToolbars.QatTopAreaUIElement.get_Region() QADB.EXE: N 00086 Infragistics.Win.UIElement.DrawElement(defaultDrawParams As UIElementDrawParams&) QADB.EXE: N 00708 Infragistics.Win.UIElement.DrawChildElements(drawParams As UIElementDrawParams&) QADB.EXE: N 00046 Infragistics.Win.UIElement.DrawElement(defaultDrawParams As UIElementDrawParams&) QADB.EXE: N 01402 Infragistics.Win.UIElement.DrawChildElements(drawParams As UIElementDrawParams&) QADB.EXE: N 00046 Infragistics.Win.UIElement.DrawElement(defaultDrawParams As UIElementDrawParams&) QADB.EXE: N 01402 Infragistics.Win.UIElement.DrawChildElements(drawParams As UIElementDrawParams&) QADB.EXE: N 00046 Infragistics.Win.UIElement.DrawElement(defaultDrawParams As UIElementDrawParams&) QADB.EXE: N 01402 Infragistics.Win.UIElement.DrawHelper(graphics As Graphics, invalidRectangle As Rectangle, doubleBuffer As Boolean, alphaBlendMode As AlphaBlendMode, clipText As Boolean, forceDrawAsFocused As Boolean, preventAlphaBlendGraphics As Boolean) QADB.EXE: N 00487 Infragistics.Win.ControlUIElementBase.Draw(graphics As Graphics, invalidRectangle As Rectangle, doubleBuffer As Boolean, alphaBlendMode As AlphaBlendMode, elementSize As Size, preventAlphaBlendGraphics As Boolean) QADB.EXE: N 00374 Infragistics.Win.ControlUIElementBase.Draw(graphics As Graphics, invalidRectangle As Rectangle, doubleBuffer As Boolean, alphaBlendMode As AlphaBlendMode) QADB.EXE: N 00077 Infragistics.Win.UltraControlBase.OnPaint(pe As PaintEventArgs) QADB.EXE: N 00132 Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnPaint(pe As PaintEventArgs) QADB.EXE: N 00100 System.Windows.Forms.Control.PaintWithErrorHandling(e As PaintEventArgs, layer As Int16, disposeEventArgs As Boolean) QADB.EXE: N 00153 System.Windows.Forms.Control.OnPrint(e As PaintEventArgs) QADB.EXE: N 00095 System.Windows.Forms.Control.WmPrintClient(m As Message&) QADB.EXE: N 00150 System.Windows.Forms.Control.WndProc(m As Message&) QADB.EXE: N 00992 System.Windows.Forms.ControlNativeWindow.OnMessage(m As Message&) QADB.EXE: N 00015 System.Windows.Forms.ControlNativeWindow.WndProc(m As Message&) QADB.EXE: N 00048 System.Windows.Forms.NativeWindow.Callback(hWnd As IntPtr, msg As Int32, wparam As IntPtr, lparam As IntPtr) QADB.EXE: N 00089
I was not able to reproduce this issue and from looking at the code in the stack trace, I cannot see what the problem would be. If possible, please submit a sample reproducing this issue to the support group so it can be investigated: http://ko.infragistics.com/gethelp.
Yeah, turns out that was where i found it. I was running Vista inside a full screen virtual PC, i has Visual Studio opened in both and was Windows7 and not the Vista virtual PC.
I am sure it has something to do w/the .NET version, it says "Microsoft .NET 3.51" vs. "Microsoft .NET 3.5" in Vista. Why they would change the System.Drawing call is beyond me.
Ran into the same damn error minutes ago. Also WinClient 8.3 running under Windows 7 Beta.
I don't think it's the .Net Version conflict you mention, though.
WinClient 8.3 is built against .Net Framework 2.0, it doesn't require Framework 3.x at all, and neither does my Project. Seems to be a subtle difference in the Win32 API in Windows 7, from what i can see. Unfortunately, this renders all programs using the Infragistics Ribbon Interface useless under Windows 7 Beta.
An yeah, i know, it's a beta, but there sure must be someone at Infragistics who's already working on this? And perhaps has some kind of Hotfix for that problem? Since Windows 7 is API complete, i doubt there will be changes to the Windows 7 API, and i don't like the idea of delivering a program to my clients that will definitely break once Windows 7 hits the market....
Found the same problem myself. Traced it to the Quick Access Toolbar on the ribbon. Still working through the source for the root cause, but setting the QAT visibility to false fixes the problem. Unfortunately it also prevents the application menu from integrating into the window frame making it a bit cheesy. But at least it's a short term workaround.
Thank you for the tip. I have the same problem under Infragistics2.Win.UltraWinToolbars.v7.2. I am able to work-around for the moment with this (where utb is a reference to UltraToolbarsManager:
With System.Environment.OSVersion If .Platform = PlatformID.Win32NT Then If .Version.Major = 6 And .Version.Build >= 7000 Then utb.Office2007UICompatibility = False utb.Ribbon.QuickAccessToolbar.Visible = False End If End If End With
With System.Environment.OSVersion
If .Platform = PlatformID.Win32NT Then
If .Version.Major = 6 And .Version.Build >= 7000 Then
utb.Office2007UICompatibility = False
utb.Ribbon.QuickAccessToolbar.Visible = False
End If
End With