User (Legacy) Posted November 29, 2006 Report Share Posted November 29, 2006 I use chart fx in several winforms under VS2005. We also use n-unit extensively to unit test individual modules. Unfortunately, if I try to run a win form that contains a chart fx object from bunit I get the error shown below. I have searched the KB and alll work arounds seem to require a a minimum relinking to top level executable. This however is not possible when using a generic unit test utility such as n-unit. (n-unit works by running their executable which loads and tests specified dlls. Thus the n-unit exe cannot have any prior knowledge of what it may be asked to run) From reading your KB articles, I'm beginning to thing that chartFx is not compatible with n-unit? Thanks for any help, Mitch System.ComponentModel.LicenseException: Couldn't get Run Time license for 'SoftwareFX.ChartFX.Chart' at SoftwareFX.ChartFX.Base.1Y.QB(LicenseContext 2JQ, Type 2JR, Object 2JS, Boolean 2JT, LicenseProvider 2JU) at SoftwareFX.ChartFX.Base.RegistryLicenseProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions) at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey) at System.ComponentModel.LicenseManager.ValidateInternal(Type type, Object instance, Boolean allowExceptions, License& license) at System.ComponentModel.LicenseManager.Validate(Type type, Object instance) at SoftwareFX.ChartFX.Chart..ctor() at AutoChem.Fbrm.Forms.StartExperiment.SignalViewer.InitializeComponent() in SignalViewer.cs:line 193 at AutoChem.Fbrm.Forms.StartExperiment.SignalViewer..ctor() in SignalViewer.cs:line 78 at AutoChem.Fbrm.Forms.StartExperiment.CleanStep..ctor() in CleanStep.cs:line 208 at AutoChem.Fbrm.Forms.StartExperiment.StartExperimentWizard.InitializeComponent() in StartExperimentWizard.cs:line 162 at AutoChem.Fbrm.Forms.StartExperiment.StartExperimentWizard..ctor(FbrmDevice device, WizardUsage usage) in StartExperimentWizard.cs:line 97 at AutoChem.Fbrm.Forms.StartExperiment.StartExperimentWizard.CreateStartExperimentWizard(FbrmDevice device) in StartExperimentWizard.cs:line 82 at FBRMUnitTests.Wizards.StartTest.BasicTest() in StartTest.cs:line 18 Link to comment Share on other sites More sharing options...
Software FX Posted November 29, 2006 Report Share Posted November 29, 2006 You need a license of Chart FX Installed on the computer in which these tests are running. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 29, 2006 Author Report Share Posted November 29, 2006 I am working entirely on my development PC, thus I think that I do have a license installed. I am currently using a development license. Thanks, Mitch "Software FX" <noreply@softwarefx.com> wrote in message news:yiixVZ8EHHA.2096@webserver3.softwarefx.com... > You need a license of Chart FX Installed on the computer in which these > tests are running. > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted November 29, 2006 Report Share Posted November 29, 2006 Is n-unit a managed EXE or unmanaged ? -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
User (Legacy) Posted November 29, 2006 Author Report Share Posted November 29, 2006 Actually, I´m not sure because the execution of the unit tests is handled by a VS add in called ReSharper. If you can tell me the issues or what to do in each case, I will send Resharper an e-mail to see if anything can be done. Thanks Mitch "Software FX" <noreply@softwarefx.com> wrote in message news:EEfBK48EHHA.3220@webserver3.softwarefx.com... > Is n-unit a managed EXE or unmanaged ? > > -- > Francisco Padron > www.chartfx.com > Link to comment Share on other sites More sharing options...
Software FX Posted November 29, 2006 Report Share Posted November 29, 2006 If it is a VS adding, the EXE is probably VS itself, which is unmanaged. When you say you have a " development license", do you mean you have "Developer Studio" ? If so, Developer studio has a limitation, it can not be used at run-time from an unmanaged EXE. Please contact Software FX, technically you need a full copy of Chart FX in order to make this scenario work but they may give you some options as far as pricing. -- Francisco Padron www.chartfx.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.