Jump to content
Software FX Community

Chart FX Gauges System.TypeInitializationException

Recommended Posts


 I have  a project in Visual Studio 2005 that uses ChartFX and I am trying to modify that project with some additional features. I installed the ChartFX Gauges for .NET but I am unable to build the solution as it keeps throwing this exception.

Error 6 Exception occurred creating type 'ChartFX.WinForms.Gauge.RadialGauge, ChartFX.WinForms.Gauge, Version=1.0.2601.0, Culture=neutral, PublicKeyToken=a1878e2052c08dce' System.TypeInitializationException: The type initializer for 'ChartFX.WinForms.Gauge.BaseGauge' threw an exception. ---> System.TypeInitializationException: The type initializer for 'a8' threw an exception. ---> System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.RegistryPermission, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. D:\src\chineseresx\635devatd\ease_of_use\TestSummaryPanel\Properties\licenses.licx 1 TestSummaryPanel 

Any advice would be greatly appreciated.


Link to post
Share on other sites

The problem is permissions.

In order to build an app using Gauges you must be an administrator on the machine you are compiling. The license needs to be obtained from the registry.

 The error you are getting says that the control is failing to obtain the information from the registry dues to a security restriction.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...