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.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
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
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
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
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
CHRobinson.Financials.Credit.WinUI
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
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
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.ServiceModel.Web/3.5.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll
System.Runtime.Serialization
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
System.IdentityModel
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.IdentityModel/3.0.0.0__b77a5c561934e089/System.IdentityModel.dll
Microsoft.JScript
Win32 Version: 8.0.50727.4016
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.JScript/8.0.0.0__b03f5f7f11d50a3a/Microsoft.JScript.dll
3gwqchy7
System.Runtime.Remoting
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
CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Shared.v7.1.DLL
Infragistics2.Win.UltraWinToolbars.v7.1
CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinToolbars.v7.1.DLL
Infragistics2.Win.UltraWinDock.v7.1
CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinDock.v7.1.DLL
Infragistics2.Win.UltraWinGrid.v7.1
CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinGrid.v7.1.DLL
Infragistics2.Win.UltraWinGrid.ExcelExport.v7.1
CodeBase: file:///C:/Program%20Files%20(x86)/CreditUI/Infragistics2.Win.UltraWinGrid.ExcelExport.v7.1.DLL
Infragistics2.Excel.v7.1
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
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
CodeBase: file:///C:/Windows/assembly/GAC_64/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
System.EnterpriseServices
CodeBase: file:///C:/Windows/assembly/GAC_64/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
Accessibility
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
************** 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>
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.
Hi Lynn,
I am currently trying to create a sample were i can try to reproduce this issue. I was just wondering if you could provide me with some more details about what you are doing and what properties you are setting. I understand that the error is random but it would help us with our testing if we could see what you are doing.
Thanks you
Any other news on this? This is a really frustating issue. I have done some more searching on the internet on this and I see a lot of people reporting this issue for various reason and nobody being able to really explain why this behavior happens or a solid fix. When this happens with a toolbar, the rest of the screen loads fine - data and all - the toolbar just has the red X and the permissionsUI message comes up.
As this error is random it is difficult to reproduce. I have spoken to our development team and i should be able to log this issue for you soon. I shall update you as soon as i have logged this issue for you.
I have logged this behaviour with our developers in our tracking system, with an issue ID of 34060.
I have logged this issue in NetAdvantage 9.2 as NetAdvantage 7.1 is no longer in maintenance. This means that this issue will be fixed in NetAdvantage 9.2 and onwards only.
This development issue will be assigned to a developer to research for a fix, workaround, or other resolution. If some other resolution is reached, I will contact you with this information. I hope this helps. Please let me know if you need further assistance on this issue.
Is there some way to see the progress on this issue or when the fix will be released?
I have created a case for you so that i can help you track the status of this development issue. The Casenumber is CAS-46393-MN47BZ.
Hi.
I have the same problem with Version 7.3.
Is there any solution?