Hi,
We use tchart.Net 2.0.2306.26231 in our application
On the development environment, where I have it installed, everything works fine.
But when I deploy my application and open the form which contains the tchart component, I get the following error message: “Object reference not set to an instance of an object.”
The error is coming from the line where a new instance of tchart is created. “this.tChart = new Steema.TeeChart.TChart();”
I’m deploying together with my app files the “TeeChart.dll”
Do I need to add any other dll? Or register any tchart related file?
I tried installing my tchart development pack in the deployment machine, and after that it works fine. But of course I can’t install it on clients machine… right?
Any suggestions on what I should do? Or what I’m doing wrong?
Also I created small application (just put on the form TChart component) and I had the same error.
But I Could see problem may into GetLicense method.
Thanks!
Monica A.
Object reference not set to an instance of an object
-
- Newbie
- Posts: 7
- Joined: Wed Oct 19, 2005 4:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Object reference not set to an instance of an object
Hi Monica,
Hope this helps!
This means the TeeChart license is not correctly compiled into your applications.Do I need to add any other dll? Or register any tchart related file?
Yes, that's right. Otherwise you should purchase a developer license for each machine where you are installing a license.I tried installing my tchart development pack in the deployment machine, and after that it works fine. But of course I can’t install it on clients machine… right?
Yes, please follow the steps on this thread. Notice that for TeeChart v2 the designtime license key in the registry will be called DesignKeyV2.Any suggestions on what I should do? Or what I’m doing wrong?
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 |
Instructions - How to post in this forum |
-
- Newbie
- Posts: 7
- Joined: Wed Oct 19, 2005 4:00 am
Re: Object reference not set to an instance of an object
Thanks for the prompt reply!
I'm trying to follow the steps, but looking into the license.licx file I realized that the dll version (2.0.2306.26231) is different from the version described on the license.licx file generated by the tchart installation (2.0.2179.21171)... should it matter? is it supposed to be like this?
Thanks,
Monica A.
I'm trying to follow the steps, but looking into the license.licx file I realized that the dll version (2.0.2306.26231) is different from the version described on the license.licx file generated by the tchart installation (2.0.2179.21171)... should it matter? is it supposed to be like this?
Thanks,
Monica A.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Object reference not set to an instance of an object
Hi Monica,
Yes, it should be the same version but you can remove the version number from licenses.licx and just leave the component part as shown in tutorial 17.
Yes, it should be the same version but you can remove the version number from licenses.licx and just leave the component part as shown in tutorial 17.
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 |