Page 1 of 1

Teechart for Net in Windows 2008 r2 server

Posted: Wed May 26, 2010 8:04 pm
by 8120110
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.

Re: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 11:20 am
by Marc
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: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 12:57 pm
by 8120110
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:

Code: Select all

Steema.TeeChart.TChart, TeeChart, Version=2.0.2838.21328, Culture=neutral, PublicKeyToken=9c8126276c77bdb7
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

Re: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 1:52 pm
by Marc
Hello,

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
to:

Code: Select all

Steema.TeeChart.TChart, TeeChart
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

Re: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 5:35 pm
by 8120110
Hi,
Should I need to restart windows after installing Steema Teechart on the server?

Regards.

Re: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 6:23 pm
by 8120110
Hi,
I also found that in the server there is not any entry of teechart in GAC.

Thanks.

Re: Teechart for Net in Windows 2008 r2 server

Posted: Thu May 27, 2010 6:30 pm
by narcis
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.