Page 1 of 1
license issue
Posted: Wed Jun 02, 2010 12:05 pm
by 9639571
I am using an old version of Steema Teechart for .Net V2. I am attempting to insert a chart into a windows form. When I insert the chart and try to run the application, I get an error that the license.licx object has not been set to an instance of an object.
When I remove the chart and the license.licx file, I now get an error about not being able to find the license.licx in the LC page which doesnt exist ( or that I cant find). It has my application locked up either way I go now.
1. Can someone tell me how to get the chart working.
2. Can someone tell me where it is looking for the license file should I need to remove it in the future.
Re: license issue
Posted: Wed Jun 02, 2010 12:17 pm
by narcis
Hi phil1995,
I strongly suggest you to read
this thread discussing about the very same issue.
Hope this helps!
Re: license issue
Posted: Wed Jun 02, 2010 2:34 pm
by 9639571
Thanks very much for replying so quickly. I tried all of your suggestions without success I am afraid. I then proceeded to remove the reference to TeeChart from my project. I then put it back and I was then able to drag and drop TeeChart components onto my forms. Had to setup all the chart propoerties again and tidy up a few things but have it running fine now.
The TeeChart .NET V3 looks great!
I have done that over and over again with no success. This seems far to complicated to just show a chart on my application. How can I just get it to quit looking for the license so I can just remove everything steema related.
Re: license issue
Posted: Wed Jun 02, 2010 3:58 pm
by Marc
Hello,
If TeeChart has been installed with the TeeChart installer it adds a design key to the registry to permit designtime use.
Once in Visual Studio, when adding TeeChart to a form for the first time the licenses.licx file is automatically created with the correct contents. That should read similar to this:
Code: Select all
Steema.TeeChart.TChart, TeeChart, Version= [here putting version number]
When the project is compiled, as long as the registry designtime key exists, the license will be compiled into the application. No license file is then required when distributing the application.
If you have deleted the licenses.licx and wish to recreate it, you can drag a TChart from the Tool palette onto a form and it will recreate the file. You can then delete that Chart if not needed.
If there is still a problem compiling at that stage, please tell us the exact error message and we will advise.
Regards,
Marc Meumann
Re: license issue
Posted: Wed Jun 02, 2010 4:01 pm
by 9639571
The problem is, if I delete the file, it gives me an error because it cant find the file. If I leave the file in, it gives me the object not set to an instance of an object error.
Wont run with either instance.
Re: license issue
Posted: Wed Jun 02, 2010 7:03 pm
by Marc
Hello,
Does the error occur when you try to build the application, or only when you run it? Please could you post-up the complete text of the error message.
- Is the licenses.licx included in your project as an 'embedded resource'? (select the file in solution explorer to view properties)
- Is TeeChart included as a form visible Chart or are you creating it dynamically at runtime?
With thanks.
Regards,
Marc