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
Aladdin HASP Envelope issues with TeeChart
-
- Newbie
- Posts: 2
- Joined: Mon Jun 26, 2006 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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.
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.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 2
- Joined: Mon Jun 26, 2006 12:00 am
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?
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?