Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
Random Red X at Runtime in UltrawinToolbar
posted

Our users are reporting an error with the appearance of a red X in some of our infragistics controls - this includes toolbars and grids.  It occurs in several of our screens at random times.  I have read some posts that this could be due to unsafe thread usage but the application is NOT multi-threaded and the 'X' appears in toolbars and grids.  Below is the error details.  We are using netadvatage v7.1 tools in a vb.net app.  Anyone have any other thoughts on what may be causing this?

Thanks

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

   at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)

   at System.Security.CodeAccessSecurityEngine.CheckHelper(PermissionSet grantedSet, PermissionSet refusedSet, CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)

   at System.Security.CodeAccessSecurityEngine.CheckHelper(CompressedStack cs, PermissionSet grantedSet, PermissionSet refusedSet, CodeAccessPermission demand, PermissionToken permToken, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)

   at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)

   at System.Security.CodeAccessPermission.Demand()

   at System.Windows.Forms.Control.CreateGraphics()

   at Infragistics.Win.DrawUtility.CreateReferenceGraphicsNoWarn(Control control)

   at Infragistics.Win.DrawUtility.GetCachedGraphics(Control control)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.MeasureString(AppearanceData& appearance, Font font, String stringToMeasure, Boolean isVertical, HotkeyPrefix hotkeyPrefix, ToolBase tool)

   at Infragistics.Win.UltraWinToolbars.ToolBase.MeasureString(AppearanceData& appearance, Font font, String stringToMeasure)

   at Infragistics.Win.UltraWinToolbars.ToolBase.GetTextSize(AppearanceData& appearance)

   at Infragistics.Win.UltraWinToolbars.ToolBase.GetTextSize()

   at Infragistics.Win.UltraWinToolbars.ButtonTool.CalculateLogicalSizeOfToolInstanceHelper(ToolBase tool)

   at Infragistics.Win.UltraWinToolbars.PopupToolBase.CalculateLogicalSizeOfToolInstance()

   at Infragistics.Win.UltraWinToolbars.ToolBase.CalculateLogicalSizeOfToolInstanceHelper()

   at Infragistics.Win.UltraWinToolbars.ToolBase.CalculateHeightResolved(Boolean useCalculateLogicalSize)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarBase.ToolGroup..ctor(ToolbarMetrics metrics, ToolBase firstVisibleTool)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarBase.ToolbarMetrics.CalculateFloatingMetrics(Size cachedSize, Size delta)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarBase.GetMetrics(Size cachedSize, Size delta)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarBase.ToolAreaInformation.FromToolbar(UltraToolbarBase toolbar, Rectangle overallArea)

   at Infragistics.Win.UltraWinToolbars.ToolbarUIElement.PositionChildElements()

   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

   at Infragistics.Win.UIElement.VerifyChildElements(ControlUIElementBase controlElement, Boolean recursive)

   at Infragistics.Win.UIElement.DrawHelper(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean clipText, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics)

   at Infragistics.Win.UIElement.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Boolean forceDrawAsFocused, Boolean preventAlphaBlendGraphics)

   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize, Boolean preventAlphaBlendGraphics)

   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode, Size elementSize)

   at Infragistics.Win.ControlUIElementBase.Draw(Graphics graphics, Rectangle invalidRectangle, Boolean doubleBuffer, AlphaBlendMode alphaBlendMode)

   at Infragistics.Win.UltraControlBase.OnPaint(PaintEventArgs pe)

   at Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea.OnPaint(PaintEventArgs pe)

   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

   at System.Windows.Forms.Control.WmPaint(Message& m)

   at System.Windows.Forms.Control.WndProc(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)

The action that failed was:

Demand

The type of the first permission that failed was:

System.Security.Permissions.UIPermission

 

 

************** Loaded Assemblies **************

mscorlib

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4200 (NetFxQFE.050727-4200)

    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

----------------------------------------

CreditUI

    Assembly Version: 1.6.15.0

    Win32 Version: 1.6.15.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CreditUI.exe

----------------------------------------

System

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

Microsoft.VisualBasic

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll

----------------------------------------

System.Configuration

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

CHRobinson.Financials.Credit.CreditManager

    Assembly Version: 1.6.13.0

    Win32 Version: 1.6.13.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.Credit.CreditManager.DLL

----------------------------------------

System.Windows.Forms

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

CHRobinson.Financials.Credit.WinUI

    Assembly Version: 1.6.15.0

    Win32 Version: 1.6.15.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.Credit.WinUI.DLL

----------------------------------------

System.ServiceModel

    Assembly Version: 3.0.0.0

    Win32 Version: 3.0.4506.4037 (QFE.030729-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel/3.0.0.0__b77a5c561934e089/System.ServiceModel.dll

----------------------------------------

SMDiagnostics

    Assembly Version: 3.0.0.0

    Win32 Version: 3.0.4506.4037 (QFE.030729-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/SMDiagnostics/3.0.0.0__b77a5c561934e089/SMDiagnostics.dll

----------------------------------------

System.WorkflowServices

    Assembly Version: 3.5.0.0

    Win32 Version: 3.5.594.1152

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.WorkflowServices/3.5.0.0__31bf3856ad364e35/System.WorkflowServices.dll

----------------------------------------

System.ServiceModel.Web

    Assembly Version: 3.5.0.0

    Win32 Version: 3.5.594.1152

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll

----------------------------------------

System.Runtime.Serialization

    Assembly Version: 3.0.0.0

    Win32 Version: 3.0.4506.4037 (QFE.030729-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

----------------------------------------

System.IdentityModel

    Assembly Version: 3.0.0.0

    Win32 Version: 3.0.4506.4037 (QFE.030729-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll

----------------------------------------

Microsoft.JScript

    Assembly Version: 8.0.0.0

    Win32 Version: 8.0.50727.4016

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll

----------------------------------------

3gwqchy7

    Assembly Version: 1.6.13.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Runtime.Remoting

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll

----------------------------------------

CHRobinson.Financials.Credit.CreditLibrary

    Assembly Version: 1.6.1.0

    Win32 Version: 1.6.1.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.Credit.CreditLibrary.DLL

----------------------------------------

Infragistics2.Win.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.v7.1.DLL

----------------------------------------

Infragistics2.Shared.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Shared.v7.1.DLL

----------------------------------------

Infragistics2.Win.UltraWinToolbars.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinToolbars.v7.1.DLL

----------------------------------------

Infragistics2.Win.UltraWinDock.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinDock.v7.1.DLL

----------------------------------------

Infragistics2.Win.UltraWinGrid.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinGrid.v7.1.DLL

----------------------------------------

Infragistics2.Win.UltraWinGrid.ExcelExport.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinGrid.ExcelExport.v7.1.DLL

----------------------------------------

Infragistics2.Excel.v7.1

    Assembly Version: 7.1.20071.1071

    Win32 Version: 7.1.20071.1071

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Excel.v7.1.DLL

----------------------------------------

CHRobinson.Financials.Credit.BusinessProcess

    Assembly Version: 1.6.5.0

    Win32 Version: 1.6.5.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.Credit.BusinessProcess.DLL

----------------------------------------

CHRobinson.Financials.Credit.CreditDataManager

    Assembly Version: 1.6.6.0

    Win32 Version: 1.6.6.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.Credit.CreditDataManager.DLL

----------------------------------------

Microsoft.ApplicationBlocks.ExceptionManagement

    Assembly Version: 2.2.0.0

    Win32 Version: 2.2.0.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Microsoft.ApplicationBlocks.ExceptionManagement.DLL

----------------------------------------

System.Data

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

Microsoft.ApplicationBlocks.Data

    Assembly Version: 2.1.0.0

    Win32 Version: 2.1.0.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Microsoft.ApplicationBlocks.Data.DLL

----------------------------------------

System.Transactions

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll

----------------------------------------

System.EnterpriseServices

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

----------------------------------------

Accessibility

    Assembly Version: 2.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

CHRobinson.Financials.CurrencyService

    Assembly Version: 1.0.0.0

    Win32 Version: 1.0.0.0

    CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/CHRobinson.Financials.CurrencyService.DLL

----------------------------------------

z2gdvkbb

    Assembly Version: 1.0.0.0

    Win32 Version: 2.0.50727.4016 (NetFxQFE.050727-4000)

    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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>

 

Parents
  • 44743
    posted

    It looks like either the application or the Infragistics assemblies are not full trust. That said, I believe the code should be asserting for permissions before trying to create the graphics object and it seems it is not from the stack trace. So this could be a bug. I have forwarded this post to the Developer Support Manager and a DS engineer will be contacting you about this issue.

Reply Children