User (Legacy) Posted February 15, 2006 Report Share Posted February 15, 2006 Hello, I have downloaded the demo version of ChartFx for VS 2005 and need to show my boss some of the sample chart I came up with to get him to buy the full version; however he is getting an exception when he tries to open a form that has a chart on it. He does not have ChartFx installed as he is not doing any development. The exception is: Type: System.ComponentModel.LicenseException Source: ChartFX.WinForms Message: Couldn't get Run Time license for 'ChartFX.WinForms.Chart' This exception is occuring when we attempt to instantiate the form containing the Chart. Note that we create the form instance dynamically using Assembly.CreateInstance(typeName). The ChartFx dlls are in the same folder as the assembly for form we are creating and the exception source seems in indicate that the ChartFx dll is being found and loaded. Please let me know if you need any other information. Thanks, Wes Brown Cole Systems Link to comment Share on other sites More sharing options...
Software FX Posted February 17, 2006 Report Share Posted February 17, 2006 Wes, The problem is that the license is not getting embedded in the exe. This is dot net standard. Just drop the chart in a dummy form in visual studio. The license will get embedded into the exe. You don´t really ever have to display this form. Just the act of dropping the chart will embed the license into your exe. This will also put the chartfx assemblies into the same folder where the exe is. This means you won´t need to need to use reflection to create the chart (Assembly.CreateInstance). Lastly, in your case because you have installed chartfx on your machine the license is found in the registry. That same license is put into the exe when you drop and build. Hope this helps. -c "Wes Brown" <wbrown@colesys.com> wrote in message news:6b554a6595b328c801f2601c0b5e@news.softwarefx.com... > Hello, > > I have downloaded the demo version of ChartFx for VS 2005 and need to show > my boss some of the sample chart I came up with to get him to buy the full > version; however he is getting an exception when he tries to open a form > that has a chart on it. He does not have ChartFx installed as he is not > doing any development. The exception is: > > Type: System.ComponentModel.LicenseException Source: ChartFX.WinForms > Message: Couldn´t get Run Time license for ´ChartFX.WinForms.Chart´ > This exception is occuring when we attempt to instantiate the form > containing the Chart. Note that we create the form instance dynamically > using Assembly.CreateInstance(typeName). The ChartFx dlls are in the same > folder as the assembly for form we are creating and the exception source > seems in indicate that the ChartFx dll is being found and loaded. > > Please let me know if you need any other information. > > Thanks, > Wes Brown > Cole Systems > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.