Error opening chartEditor in user's computer

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Error opening chartEditor in user's computer

Post by acastro » Mon Dec 14, 2009 10:45 am

I developed a program which open charteditor, it runs sucessfully in the developer computer, but I installed it in a user computer the chart is seen successfully but when I try to open chart editor it shows this error.
I forgot to add something in the installer?

Thanks in advance
Attachments
charteditor.png
charteditor.png (138.3 KiB) Viewed 17762 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Error opening chartEditor in user's computer

Post by Sandra » Tue Dec 15, 2009 9:07 am

Hello wakeup,

I think that the problem may be caused by license installed incorrectly, wrongly compiled or you are still using eval version of TeeChart.Net. Please, see the link to check this as explain Narcís.

I hope will help.

Thanks,
Best Regards,
Sandra Pazos / 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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Tue Dec 15, 2009 11:30 am

In the developer computer it runs sucesfully so I think it is well in it. The problem is only in the user computer which doesn't have teechart for desing installed.

The project is well compiled the program opens sucessfully and show charts, the problem is only when I try to open chartEditor.

I added utils/license.licx to the setup program but it didn't solve the problem.

I read your link but it is for people with problems in developer computer not in the final user computer...

Thanks!

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

Re: Error opening chartEditor in user's computer

Post by Narcís » Tue Dec 15, 2009 11:34 am

Hi wakeup,
In the developer computer it runs sucesfully so I think it is well in it. The problem is only in the user computer which doesn't have teechart for desing installed.
That's correct, designtime license must not be installed in deployment machines.
I read your link but it is for people with problems in developer computer not in the final user computer...
Yes, but the problem could be that the developer computer or project is referencing wrong TeeChart assemblies and therefore the license setup would apparently work fine. Could you please check the steps I described in the thread Sandra pointed you?

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Tue Dec 15, 2009 3:46 pm

Narcís wrote: 1. Make sure that licenses.licx is built as an embedded resource in your project as told in tutorial 17.
The tutorial 17 is a bit confussing. I have a license.licx file in the properties of my project. I added it in deployment proyect and it is installed in the user computer... but I'm not sure if it is enought.
Narcís wrote: 2. Reset your machine's AssemblyFolders entry as told here.
I don't have that entry in HKEY_CURRENT_USER\... and neither in HKEY_LOCAL_MACHINE\... Is that good?
Narcís wrote: 3. Check if the NetDemo project shipped with the installation compiles fine at your end.
I don't found anything called NetDemo in my steema folder "C:\Program Files\Steema Software\TeeChart for .NET 2009"

Narcís wrote: 4. Check if invalidating DesignKeyV3 on your machine, as Marc described here, makes any difference.
I got this error:
Error 1 Exception occurred creating type 'Steema.TeeChart.TChart, TeeChart, Version=4.0.2009.35592, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ComponentModel.LicenseException: 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. D:\Users\acastro\MyDocuments\Visual Studio 2008\Projects\GestorDatosGalindoMatriz\GestorDatosGalindo\licenses.licx 1 GestorDatosGalindo

Narcís wrote: 5. You could also use TeeRegister tool, available at the client area, to make sure the design time license is properly installed on your machine.
I runned again the TeeRegV2009.exe file, but the problem remains...

Thanks!

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

Re: Error opening chartEditor in user's computer

Post by Narcís » Wed Dec 16, 2009 8:32 am

Hi wakeup,
The tutorial 17 is a bit confussing. I have a license.licx file in the properties of my project. I added it in deployment proyect and it is installed in the user computer... but I'm not sure if it is enought.
licenses.licx should be compiled in your application as an embedded resource. Please check how it is set up in the examples shipped with the installation.
I don't have that entry in HKEY_CURRENT_USER\... and neither in HKEY_LOCAL_MACHINE\... Is that good?
If the installation finished successfully I'd expect it to be there but it shouldn't be a problem it not being there.
I don't found anything called NetDemo in my steema folder "C:\Program Files\Steema Software\TeeChart for .NET 2009"
Sorry, my fault. It's called DemoProject and is available at C:\Program Files\Steema Software\TeeChart for .NET 2009\Examples\DemoProject
I got this error:
Error 1 Exception occurred creating type 'Steema.TeeChart.TChart, TeeChart, Version=4.0.2009.35592, Culture=neutral, PublicKeyToken=9c8126276c77bdb7' System.ComponentModel.LicenseException: 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. D:\Users\acastro\MyDocuments\Visual Studio 2008\Projects\GestorDatosGalindoMatriz\GestorDatosGalindo\licenses.licx 1 GestorDatosGalindo
This could be a signal that the designtime developer license is correctly installed in your machine and the designtime license correctly compiled in your application.
I runned again the TeeRegV2009.exe file, but the problem remains...
If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here and let us know the exact TeeChart version you are using.

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Tue Dec 22, 2009 10:12 am

Narcís wrote: licenses.licx should be compiled in your application as an embedded resource. Please check how it is set up in the examples shipped with the installation.
I attached a screenshot, is that the way to add as an embedded resource?


Narcís wrote: If the problem persists please send us a simple example project we can run "as-is" to reproduce the problem here and let us know the exact TeeChart version you are using.
I attached a simple example project, I can open it in the client computer but when I push in the chartController the button to show the chartEditor it shows the error.

Thanks
Attachments
TestLicenseTeechart.zip
(29.58 KiB) Downloaded 562 times
resources.png
resources.png (85.8 KiB) Viewed 17674 times

starnov
Newbie
Newbie
Posts: 7
Joined: Wed Jun 03, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by starnov » Tue Dec 22, 2009 11:37 am

Hi wakeup. Try

Code: Select all

Steema.TeeChart.Editor.Show(chart);
instead of

Code: Select all

chart.ShowEditor();

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Tue Dec 22, 2009 12:10 pm

starnov wrote:Hi wakeup. Try

Code: Select all

Steema.TeeChart.Editor.Show(chart);
instead of

Code: Select all

chart.ShowEditor();
Thanks

Code: Select all

Steema.TeeChart.Editor.Show(chart);
run successfully, but I have still the error when I push the button in chartController... :(

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

Re: Error opening chartEditor in user's computer

Post by Narcís » Tue Dec 22, 2009 2:11 pm

Hi wakeup,
I attached a screenshot, is that the way to add as an embedded resource?
No, it's as shown in the image below, as in the example projects I told you. You already had it correct
EmbeddedResource.jpg
EmbeddedResource.jpg (120.04 KiB) Viewed 17663 times
run successfully, but I have still the error when I push the button in chartController... :(
Just had to reassign TeeChart.dll reference to your project, build it, both in debug and release mode, and deployed application's *.exe and TeeChart.dll to a machine without TeeChart installed and could run it successfully. Can you please try deploying the application as I did?

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Mon Jan 04, 2010 3:06 pm

Narcís wrote: No, it's as shown in the image below, as in the example projects I told you. You already had it correct
EmbeddedResource.jpg
I see a difference between your setup project and mine. I have the TeeChart.dll file in "Detected dependencies". Could it be related with my problem?


Narcís wrote: Just had to reassign TeeChart.dll reference to your project, build it, both in debug and release mode, and deployed application's *.exe and TeeChart.dll to a machine without TeeChart installed and could run it successfully. Can you please try deploying the application as I did?
I have just deleted TeeChart.dll from the references, and I added it manually, I rebuilt the teechart project and the setup project but the error remains :(

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

Re: Error opening chartEditor in user's computer

Post by Narcís » Mon Jan 04, 2010 3:41 pm

Hi wakeup,
I see a difference between your setup project and mine. I have the TeeChart.dll file in "Detected dependencies". Could it be related with my problem?
I don't know. I'm sorry, I'm not familiar with setup projects.
I have just deleted TeeChart.dll from the references, and I added it manually, I rebuilt the teechart project and the setup project but the error remains
Have you tried only building the project and using the exe it created as I told you in my previous reply? If this doesn't work I'll send you the *exe which works fine for me to see if it works fine at your end.

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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Mon Jan 04, 2010 3:51 pm

Narcís wrote: Have you tried only building the project and using the exe it created as I told you in my previous reply? If this doesn't work I'll send you the *exe which works fine for me to see if it works fine at your end.
Yes I did and the problem remains. Please, send me your exe file.

Thanks!

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

Re: Error opening chartEditor in user's computer

Post by Narcís » Mon Jan 04, 2010 4:04 pm

Hi wakeup,

Find them attached. You just need to extract the zip package and copy latest TeeChart for .NET 2009 dll available next to each *.exe (debug and release builds) and run them.
Attachments
TestLicenseTeechart.zip
(8.11 KiB) Downloaded 568 times
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

acastro
Advanced
Posts: 204
Joined: Tue Oct 27, 2009 12:00 am

Re: Error opening chartEditor in user's computer

Post by acastro » Mon Jan 04, 2010 4:38 pm

I have just done it and I get the same error as with my example... The aplication opens succesfully but I get an error when I try to open ChartEditor from chartController button :(

Post Reply