Page 1 of 1

license file not being copied to output dir

Posted: Tue Jun 30, 2009 7:22 pm
by 13051191
VS2008 Pro, X86 (only) .NET project build.
I upgraded teechart (minor update) and at some point the license file stopped getting copied to the output directory - the old one was there but not the new one. I removed the reference and re-added it, I have 'copy file' for that reference to true.

I can manually add the licenses.licx file to the project and have it copied to the output directory or put as an embedded resource, what is the best option? Can I embed this and have it not needed in the output directory?

Do I re-do this each time I update the version of TeeChart?

Thanks.

Re: license file not being copied to output dir

Posted: Tue Jun 30, 2009 7:34 pm
by 13051191
The error message I'm getting is (for user computers) "Load ErrorAn instance of type 'Steema.TeeChart.Chart' was being created and a valid license could not be granted for teh type 'Steema.TeeChart.Chart'. Please, contact the manufacturer of the component for more information.

Re: license file not being copied to output dir

Posted: Tue Jun 30, 2009 9:12 pm
by 13051191
I opened a form in the app, dragged a new teechart onto it, deleted the teechart, and things are better.

Re: license file not being copied to output dir

Posted: Wed Jul 01, 2009 10:32 am
by narcis
Hi dunion,

The contents of the licenses.licx file most likely won't change between version updates as auto-editing of the file only takes place when a Chart is dragged to a form (as per your last post). An abbreviated TeeChart entry in the file is possible, thus being build independant:

ie.
Steema.TeeChart.Chart, TeeChart

and/or
Steema.TeeChart.TChart, TeeChart

and/or
Steema.TeeChart.Web.WebChart, TeeChart

Re: license file not being copied to output dir

Posted: Tue Jul 07, 2009 2:10 pm
by 13048974
i am getting the same error that dunion is getting ("... a valid license could not be granted for the type 'Steema.TeeChart.Chart'.") I don't know how to do the trick that he mentioned so could you explain to me where the licenses file needs to be and what needs to be in it. I am a very new to C#, have worked very little with 3rd party components and this is an inherited solution that has 2 projects that reference TeeChart.dll.

thanks,
ndnd

Re: license file not being copied to output dir

Posted: Tue Jul 07, 2009 2:31 pm
by narcis
hi ndnd,

Please read the thread below about the same issue:

http://www.teechart.net/support/viewtopic.php?t=6711

You may also want to check the examples included with the installation which include licenses.licx compiled as an embedded resource.

Hope this helps!

Re: license file not being copied to output dir

Posted: Tue Jul 07, 2009 4:39 pm
by 13048974
narcis

i found and loaded the example project. i see the licenses.licx file in the project directory on the disk but not in visual studio. i do not know how to see how it is used as an embedded resource inside visual studio. i have searched for "licenses.licx" in the project but it not referred to in any comments or code or hidden text. please advise.

also, how do i access the tutorial mentioned in the thread that you pointed me to ?

thanks,
ndnd

Re: license file not being copied to output dir

Posted: Tue Jul 07, 2009 5:06 pm
by 13048974
i found the tutorial inside this file :
C:\Program Files\Steema Software\TeeChart for .NET v3\Docs\TeeChart for .Net Tutorials.chm

Re: license file not being copied to output dir

Posted: Tue Jul 07, 2009 7:25 pm
by 13048974
Tutorial 17 was very helpful. I was able to deploy to a user machine with no errors once i embedded the licenses.licx files in the 2 projects that reference teechart and the startup object.

one minor question from the tutorial:

What does the following mean?

"... plus the corresponding 'not-published' keycode ..."

This phrase appears in the Description subsection of the "Licensing setup for design and runtime" section of Tutorial 17.

thanks
ndnd

Re: license file not being copied to output dir

Posted: Wed Jul 08, 2009 7:38 am
by narcis
Hi ndnd,

This means that besides the public key described in the tutorial there's also a private key which is necessary to be able to use TeeChart for developing and compiling applications using it.