Teechart for Net in Windows 2008 r2 server

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dautm
Newbie
Newbie
Posts: 18
Joined: Sat Oct 04, 2003 4:00 am
Location: Dalmine

Teechart for Net in Windows 2008 r2 server

Post by Dautm » Wed May 26, 2010 8:04 pm

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.

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

Re: Teechart for Net in Windows 2008 r2 server

Post by Marc » Thu May 27, 2010 11:20 am

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

Dautm
Newbie
Newbie
Posts: 18
Joined: Sat Oct 04, 2003 4:00 am
Location: Dalmine

Re: Teechart for Net in Windows 2008 r2 server

Post by Dautm » Thu May 27, 2010 12:57 pm

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

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

Re: Teechart for Net in Windows 2008 r2 server

Post by Marc » Thu May 27, 2010 1:52 pm

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

Dautm
Newbie
Newbie
Posts: 18
Joined: Sat Oct 04, 2003 4:00 am
Location: Dalmine

Re: Teechart for Net in Windows 2008 r2 server

Post by Dautm » Thu May 27, 2010 5:35 pm

Hi,
Should I need to restart windows after installing Steema Teechart on the server?

Regards.

Dautm
Newbie
Newbie
Posts: 18
Joined: Sat Oct 04, 2003 4:00 am
Location: Dalmine

Re: Teechart for Net in Windows 2008 r2 server

Post by Dautm » Thu May 27, 2010 6:23 pm

Hi,
I also found that in the server there is not any entry of teechart in GAC.

Thanks.

Narcís
Site Admin
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

Post by Narcís » Thu May 27, 2010 6:30 pm

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.
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

Post Reply