valid license could not be granted

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Level IT
Newbie
Newbie
Posts: 4
Joined: Wed Dec 07, 2005 12:00 am

valid license could not be granted

Post by Level IT » Mon Oct 08, 2007 1:38 pm

Hello,

I'm trying to build a web site with nant (0.85)...

On my local machine, everything runs well and i get graphs on my pages...

When publishing on a test server, I get this message all the time:"An instance of type 'MyGraphClass' was being created, and a valid license could not be granted for the type 'Steema.TeeChart.Chart'. Please, contact the manufacturer of the component for more information."

I check on the test server and the .licences is in my bin directory...

My nant command to build the .licences file is:

Code: Select all

<license input="${resources.dir}/licenses.licx" target="Mydll.dll" output="Mydll.dll.licenses">
			<assemblies>
				<include name="TeeChart.dll" />
			</assemblies>
		</license>
Can someone help ?

thx.

Level IT
Newbie
Newbie
Posts: 4
Joined: Wed Dec 07, 2005 12:00 am

Post by Level IT » Mon Oct 08, 2007 2:01 pm

The charts are displaying on my machine because I installed teechart (I think)

So I tried to generate the licences file with the lc command and get the same error...

Code: Select all

D:\>lc /target:MyDll.dll /complist:res/licenses.licx /i:TeeChart.dll
Maybee i did a mistake with this command ?

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

Post by Narcís » Mon Oct 08, 2007 3:23 pm

Hi Level,

Is your application being built with licenses.licx as an embedded resource? For further information I recomend you to read Tutorial 17 - Designtime, Runtime and License Requirements, specially the Licensing setup for design and runtime section.

To check whether the license is correctly compiled into your application you can modify the registry line in the machine where you compile the application:

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET] 
"DesignKey"="Steema.TeeChart.TChart is a licensed component." 
invalidating it to:

Code: Select all

[HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET] 
"DesignKey"="xxxxSteema.TeeChart.TChart is a licensed component."
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

Level IT
Newbie
Newbie
Posts: 4
Joined: Wed Dec 07, 2005 12:00 am

Post by Level IT » Mon Oct 08, 2007 3:55 pm

Thx for answer.

I'm not very fluent in english so I'm not sure i did understand well the tutorial.

Here's how my application is build:
One base.dll that contains my own graph class inheriting teechart.
The web.dll for my web application project That call my base.dll

Everything worked perfectly before we migrated to web application project.

So in the tutorial i read this:
If you have successfully compiled TeeChart with license into a dll, please note that if you then use that dll in another application you need to be sure to add the TeeChart license lines to the Licenses.licx file of the final application even though that application may not itself have a direct reference to TeeChart.
Does that mean that i need first license my base.dll and then licence my web.dll ?

Do I have to add something into the second licx file ? The class name of my graph class for instance ?

thx in advance.

Pierre Mignolet

Marc
Site Admin
Site Admin
Posts: 1217
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Post by Marc » Tue Oct 09, 2007 7:45 am

Hello,

Licensing should be active at the top level of execution, ie. at Web.dll.

You'll need a licenses.licx file with a TeeChart entry at the Web project level. If Base.dll is referenced in the project the license will compile in correctly. If you are using VSNET2005 the license may be separately built by right-mouseclicking on licenses.licx in the Solution Explorer and selecting 'Build Runtime Licenses'.

Regards,
Marc Meumann
Steema Support

Post Reply