Page 1 of 1

valid license could not be granted

Posted: Mon Oct 08, 2007 1:38 pm
by 9789399
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.

Posted: Mon Oct 08, 2007 2:01 pm
by 9789399
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 ?

Posted: Mon Oct 08, 2007 3:23 pm
by narcis
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!

Posted: Mon Oct 08, 2007 3:55 pm
by 9789399
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

Posted: Tue Oct 09, 2007 7:45 am
by Marc
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