Hi, i get the following error:
Code: Select all
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Steema.TeeChart.FrAccessProvider.GetLicense(LicenseContext context, Type type, Object instance, Boolean allowExceptions)
at System.ComponentModel.LicenseManager.ValidateInternalRecursive(LicenseContext context, Type type, Object instance, Boolean allowExceptions, License& license, String& licenseKey)
I have a windows service that runs an assembly that gererates a report using teechart. Both references to teechart v. 2.0.2586.24039 and the report assembly has a resorce embebed .licx file. But in .licx file the version number is diferent (it's just like 2.0.2838.21328)
I probbed installing teechart v. 2.0.2586.24039 on the server that runs the windows service. It didn't worked.
What the solution should be ?
Regards, Tenaris Development Team.
Teechart for Net in Windows 2008 r2 server
Re: Teechart for Net in Windows 2008 r2 server
Hello,
Re. installing teechart v. 2.0.2586.24039 on the server that runs the windows service
Just to check, so your server has the TeeChart.dll assembly build 2.0.2586.24039 installed. The the project should be built using that version and licx definition in both files as 2.0.2586.24039 too. Alternatively, remove the build number from the licx file.
eg. text content (depending on the part of TeeChart used) as either:
Steema.TeeChart.Chart, TeeChart
or
Steema.TeeChart.TChart, TeeChart
or
Steema.TeeChart.Web.WebChart, TeeChart
Please let us know if that still gives problems and we'll look for other alternatives.
Regards,
Marc Meumann
Re. installing teechart v. 2.0.2586.24039 on the server that runs the windows service
Just to check, so your server has the TeeChart.dll assembly build 2.0.2586.24039 installed. The the project should be built using that version and licx definition in both files as 2.0.2586.24039 too. Alternatively, remove the build number from the licx file.
eg. text content (depending on the part of TeeChart used) as either:
Steema.TeeChart.Chart, TeeChart
or
Steema.TeeChart.TChart, TeeChart
or
Steema.TeeChart.Web.WebChart, TeeChart
Please let us know if that still gives problems and we'll look for other alternatives.
Regards,
Marc Meumann
Steema Support
Re: Teechart for Net in Windows 2008 r2 server
Hi,
The error stills appears.
This is my situation:
My service is running in a server, this windows service is an .exe the uses some .dll that creates reports using teechart 2.0.2586.24039. Both .dlls and .exe have the teechart (2.0.2586.24039 ) reference but the embebed .lic file on a .resx. is only in .dll reports creators. This doen't works.
So then, I Install teechart 2.0.2586.24039 in the server but it also doen't works.
But i'm seeing that the .lic files are like this:
In localhost (my pc) testing this works fine but in the server doesn't it.
Should I have to delete de .lic embebed file? or
Wath part of licence Should I have to delete?
Regards
The error stills appears.
This is my situation:
My service is running in a server, this windows service is an .exe the uses some .dll that creates reports using teechart 2.0.2586.24039. Both .dlls and .exe have the teechart (2.0.2586.24039 ) reference but the embebed .lic file on a .resx. is only in .dll reports creators. This doen't works.
So then, I Install teechart 2.0.2586.24039 in the server but it also doen't works.
But i'm seeing that the .lic files are like this:
Code: Select all
Steema.TeeChart.TChart, TeeChart, Version=2.0.2838.21328, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
Should I have to delete de .lic embebed file? or
Wath part of licence Should I have to delete?
Regards
Re: Teechart for Net in Windows 2008 r2 server
Hello,
Before building you can change the licx contents from:
to:
To make it build-version independent. Check too that there is no other teechart.dll on the search path or registered in the registry assemblyfolders key or the GAC.
Regards,
Marc
Before building you can change the licx contents from:
Code: Select all
Steema.TeeChart.TChart, TeeChart, Version=2.0.2838.21328, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
Code: Select all
Steema.TeeChart.TChart, TeeChart
Regards,
Marc
Steema Support
Re: Teechart for Net in Windows 2008 r2 server
Hi,
Should I need to restart windows after installing Steema Teechart on the server?
Regards.
Should I need to restart windows after installing Steema Teechart on the server?
Regards.
Re: Teechart for Net in Windows 2008 r2 server
Hi,
I also found that in the server there is not any entry of teechart in GAC.
Thanks.
I also found that in the server there is not any entry of teechart in GAC.
Thanks.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Teechart for Net in Windows 2008 r2 server
Hi Dautm,
You should not install TeeChart to the server. Doing so you are installing a developer license in the server too. You just need to deploy your application's executable files (compiled with licenses.licx as an embedded resource) and necessary assemblies to the server as described in tutorial 17. Tutorials are available at TeeChart's program group.
If you are having problems having your application environment working fine with TeeChart's licensing requirements please contact our Sales Dept. at sales at steema dot com for an unlocked (non-license managed) version.
Thanks in advance.
You should not install TeeChart to the server. Doing so you are installing a developer license in the server too. You just need to deploy your application's executable files (compiled with licenses.licx as an embedded resource) and necessary assemblies to the server as described in tutorial 17. Tutorials are available at TeeChart's program group.
If you are having problems having your application environment working fine with TeeChart's licensing requirements please contact our Sales Dept. at sales at steema dot com for an unlocked (non-license managed) version.
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 |
Instructions - How to post in this forum |