Page 1 of 1

Aladdin HASP Envelope issues with TeeChart

Posted: Tue Jun 12, 2007 6:35 am
by 9641685
We are having issues with the HASP envelope for .NET 2.0 version 1.11. After having applied the envelope the software no longer want to initialize the teechart.dll (version2 for Visual Studio 2005) that we are using for graphics in a C# form. It only works on my PC but when tested on other PCs it crashes. I have been using the recommended command line tool for .Net 2.0 assemblies and utilized a xml config file for the Aladdin HASP envelope. An exception trace file is generated =
TIMESTAMP: 2007/06/11 01:09:26 PM
ASSEMBLY: ExMente.emSIM.AltairIHF, Version=2.2.0.0, Culture=neutral, PublicKeyToken=null
METHOD: ExMente.emSIM.AltairIHF.UIL.MainForm::MainForm.tsbSimExec_Click

EXCEPTION MESSAGE:
Object reference not set to an instance of an object.
EXCEPTION SOURCE:
TeeChart
EXCEPTION STACK TRACE:
at Steema.TeeChart.FrAccessProvider.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 Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at ExMente.emSIM.AltairIHF.UIL.Execution.Controls.SimExecUserControl.InitializeComponent()
at ExMente.emSIM.AltairIHF.UIL.Execution.Controls.SimExecUserControl..ctor()
at ExMente.emSIM.AltairIHF.UIL.MainForm.tsbSimExec_Click(Object sender, EventArgs e)

---------------------------------------

Can anyway assist me in obtaining a solution to this?? PLEASE

Posted: Tue Jun 12, 2007 7:46 am
by narcis
Hi Ex Flammae Veritas,

The error message you mention could be related to a license issue. Could you please read the forums thread below speaking about some common licensing issues?

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

Thanks in advance.

Posted: Tue Jun 12, 2007 8:54 am
by 9641685
Greetings NarcĂ­s

I have ensured that the licneces.licx is embeddedas a resource and that the TeeChart.dll is included into the project. If istalled on my system (design time) it work - even with th eHASP dongle. Yet, when deployed to a different machine (runtime) it fails with the error described above.

I did alter the registery entry -
[HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET]
"DesignKey"="Steema.TeeChart.TChart is a licensed component."

to become this -
[HKEY_LOCAL_MACHINE\SOFTWARE\Steema Software\TeeChart.NET]
"DesignKey"="xxxxSteema.TeeChart.TChart is a licensed component."

on th edesign machine and the project stoppped working with the following error trace -
=============================================
EXCEPTION MESSAGE:
An instance of type 'Steema.TeeChart.Chart' 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.
EXCEPTION SOURCE:
System
EXCEPTION STACK TRACE:
at System.ComponentModel.LicenseManager.Validate(Type type, Object instance)
at Steema.TeeChart.Chart..ctor()
at Steema.TeeChart.TChart..ctor()
at ExMente.emSIM.AltairIHF.UIL.Execution.Controls.SimExecUserControl.InitializeComponent()
at ExMente.emSIM.AltairIHF.UIL.Execution.Controls.SimExecUserControl..ctor()
at ExMente.emSIM.AltairIHF.UIL.MainForm.tsbSimExec_Click(Object sender, EventArgs e)
======================================

The TeeChart.dll (version 2.0.2306.26232) is included in the directory)

What does this mean? am I on my way to correcting th eissue?

Posted: Tue Jun 12, 2007 9:32 am
by Marc
Hello,

Could you check please, with your supplier of Hasp if their product supports licensed controls within solutions. We will act upon on their answer.

With thanks.
Regards,
Marc Meumann