license file not being copied to output dir

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

license file not being copied to output dir

Post by dunion » Tue Jun 30, 2009 7:22 pm

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.

dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

Re: license file not being copied to output dir

Post by dunion » Tue Jun 30, 2009 7:34 pm

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.

dunion
Newbie
Newbie
Posts: 24
Joined: Fri Dec 19, 2008 12:00 am

Re: license file not being copied to output dir

Post by dunion » Tue Jun 30, 2009 9:12 pm

I opened a form in the app, dragged a new teechart onto it, deleted the teechart, and things are better.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: license file not being copied to output dir

Post by Narcís » Wed Jul 01, 2009 10:32 am

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
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ndnd
Newbie
Newbie
Posts: 4
Joined: Mon May 05, 2008 12:00 am

Re: license file not being copied to output dir

Post by ndnd » Tue Jul 07, 2009 2:10 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: license file not being copied to output dir

Post by Narcís » Tue Jul 07, 2009 2:31 pm

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!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

ndnd
Newbie
Newbie
Posts: 4
Joined: Mon May 05, 2008 12:00 am

Re: license file not being copied to output dir

Post by ndnd » Tue Jul 07, 2009 4:39 pm

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

ndnd
Newbie
Newbie
Posts: 4
Joined: Mon May 05, 2008 12:00 am

Re: license file not being copied to output dir

Post by ndnd » Tue Jul 07, 2009 5:06 pm

i found the tutorial inside this file :
C:\Program Files\Steema Software\TeeChart for .NET v3\Docs\TeeChart for .Net Tutorials.chm

ndnd
Newbie
Newbie
Posts: 4
Joined: Mon May 05, 2008 12:00 am

Re: license file not being copied to output dir

Post by ndnd » Tue Jul 07, 2009 7:25 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: license file not being copied to output dir

Post by Narcís » Wed Jul 08, 2009 7:38 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply