Page 1 of 2
Error opening chartEditor in user's computer
Posted: Mon Dec 14, 2009 10:45 am
by 15654539
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
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 15, 2009 9:07 am
by 10050769
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,
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 15, 2009 11:30 am
by 15654539
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!
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 15, 2009 11:34 am
by narcis
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.
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 15, 2009 3:46 pm
by 15654539
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!
Re: Error opening chartEditor in user's computer
Posted: Wed Dec 16, 2009 8:32 am
by narcis
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.
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 22, 2009 10:12 am
by 15654539
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
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 22, 2009 11:37 am
by 15653431
Hi wakeup. Try
Code: Select all
Steema.TeeChart.Editor.Show(chart);
instead of
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 22, 2009 12:10 pm
by 15654539
starnov wrote:Hi wakeup. Try
Code: Select all
Steema.TeeChart.Editor.Show(chart);
instead of
Thanks
Code: Select all
Steema.TeeChart.Editor.Show(chart);
run successfully, but I have still the error when I push the button in chartController...
Re: Error opening chartEditor in user's computer
Posted: Tue Dec 22, 2009 2:11 pm
by narcis
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 (120.04 KiB) Viewed 17873 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.
Re: Error opening chartEditor in user's computer
Posted: Mon Jan 04, 2010 3:06 pm
by 15654539
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
Re: Error opening chartEditor in user's computer
Posted: Mon Jan 04, 2010 3:41 pm
by narcis
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.
Re: Error opening chartEditor in user's computer
Posted: Mon Jan 04, 2010 3:51 pm
by 15654539
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!
Re: Error opening chartEditor in user's computer
Posted: Mon Jan 04, 2010 4:04 pm
by narcis
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.
Re: Error opening chartEditor in user's computer
Posted: Mon Jan 04, 2010 4:38 pm
by 15654539
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