license issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
phil1995
Newbie
Newbie
Posts: 31
Joined: Fri Dec 16, 2005 12:00 am
Location: Hattiesburg, Ms.
Contact:

license issue

Post by phil1995 » Wed Jun 02, 2010 12:05 pm

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: license issue

Post by Narcís » Wed Jun 02, 2010 12:17 pm

Hi phil1995,

I strongly suggest you to read this thread discussing about the very same issue.

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
Image Image Image Image Image Image
Instructions - How to post in this forum

phil1995
Newbie
Newbie
Posts: 31
Joined: Fri Dec 16, 2005 12:00 am
Location: Hattiesburg, Ms.
Contact:

Re: license issue

Post by phil1995 » Wed Jun 02, 2010 2:34 pm

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.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: license issue

Post by Marc » Wed Jun 02, 2010 3:58 pm

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
Steema Support

phil1995
Newbie
Newbie
Posts: 31
Joined: Fri Dec 16, 2005 12:00 am
Location: Hattiesburg, Ms.
Contact:

Re: license issue

Post by phil1995 » Wed Jun 02, 2010 4:01 pm

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.

Marc
Site Admin
Site Admin
Posts: 1272
Joined: Thu Oct 16, 2003 4:00 am
Location: Girona
Contact:

Re: license issue

Post by Marc » Wed Jun 02, 2010 7:03 pm

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
Steema Support

Post Reply