ASP.NET enable web site license

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

ASP.NET enable web site license

Post by Hermes » Thu Sep 19, 2019 6:39 pm

Hello
In https://www.steema.com/linkIn/tnetpro_startup the demo "How to enable the TeeChart.licenses file for a Web Forms (or other ASP.NET) application" it is for a webapplication. How to enable in a web site?

thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Fri Sep 20, 2019 1:46 pm

Hello,

yes, this should be better documented, we're sorry. To see the TeeChart.licenses file working for a web site, you can clone the WebDemo GitHub repo from here - when you open the solution in visual studio you should see the following:
devenv_2019-09-20_15-45-09.png
devenv_2019-09-20_15-45-09.png (14.37 KiB) Viewed 35494 times
if you replace the contents of the fake TeeChart.licenses with the contents of a real TeeChart.licenses and rebuild you should see the watermark disappear. This is the required structure - a resx file named Steema.resx with the TeeChart.licenses file embedded in it.
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Thu Sep 26, 2019 8:06 pm

Hi,
I did what you've recommended:
TeechartLicenseError_II.png
TeechartLicenseError_II.png (20.76 KiB) Viewed 35437 times
The TeeChart.Licenses is the one generated by TeeCalc_Lic, and Steema.resx the one in GitHub
but still get the watermark.
TeechartLicenseError.png
TeechartLicenseError.png (67.38 KiB) Viewed 35437 times
I'm using VisualStudio 2019 Professional and the Target Framework for the web site is .NET Framework 4.7.2.

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Fri Sep 27, 2019 4:00 pm

Hi
In other solution, where its type is WebApplication there is the same problem.
TeechartLicenseError_III.png
TeechartLicenseError_III.png (15.21 KiB) Viewed 35419 times

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Fri Sep 27, 2019 5:44 pm

Hello,

does your TeeChart.licenses file work in a Windows Forms (or WPF) project, or is it only with ASP.NET that you have the problem? You could try putting the contents of your file into this link:
https://www.steema.com/linkIn/License_information_check

by which you will be able to see the end date of your license - if the TeeChart.dll assembly you are trying to use was released after the end date of your license it will not work.
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Fri Sep 27, 2019 6:09 pm

Yes, it say :
Start Date Tue May 22 2018
Expiry Date Mon May 27 2019

But I renew my license at 24/5/19.
I will send the claim to sales

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Fri Sep 27, 2019 7:11 pm

Hi,
now I have the correct license:
Start Date Thu May 23 2019
Expiry Date Wed May 27 2020

The WebApplication it is ok,
TeechartLicenseError_IV.png
TeechartLicenseError_IV.png (8.9 KiB) Viewed 35410 times
but the website keep on showing the watermark.
Any other clue?

Thanks

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Mon Sep 30, 2019 6:10 am

Hello -

I've just tested the website that is the Steema example I mentioned here by replacing the contents of the TeeChart.licenses in that example with a valid license - the example then ran correctly without a watermark. Could you please try testing that example at your end? If that website works for you, then you could use it to compare it with the website you are having trouble with.
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Mon Sep 30, 2019 2:20 pm

Hi,
I've done exactly what you ask, except that changed the target .NET Framework to 4.7.2 and it doesn't work as expected:
TeechartLicenseError_V.png
TeechartLicenseError_V.png (104.23 KiB) Viewed 35383 times
Here the project explorer:
TeechartLicenseError_VI.png
TeechartLicenseError_VI.png (25.84 KiB) Viewed 35383 times
As I've commented before, in projects type WebApplication an Windows forms, I solved the watermark problem with the same TeeChart.Licences.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Tue Oct 01, 2019 7:15 am

Hello,

I am using this configuration:
devenv_OmbZv5Z1EQ.png
devenv_OmbZv5Z1EQ.png (46.24 KiB) Viewed 35364 times
Along with a valid TeeChart.licenses file:
devenv_4LppS0JYQ1.png
devenv_4LppS0JYQ1.png (8.42 KiB) Viewed 35364 times
And I obtain the following result:
firefox_FMgLU5I7yW.png
firefox_FMgLU5I7yW.png (44.03 KiB) Viewed 35364 times
I'm afraid I don't know why it doesn't work for you. Maybe you could upload your TeeChart.licenses file to:
http://steema.net/upload.aspx

And I can add this to the Web example, zip it up and send it to you.
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Tue Oct 01, 2019 7:35 pm

Hi, what I'm experiencing in the demo is:
If I unistall teechart, install it again (via nuget) and runs the app, it works and shows charts without watermark, but only the first time. And when Visual Studio is closed and reopen, the watermark appears again.
More, if I delete TeeChart.licenses from Steema.resx, and add it again, the same result, when the app run, the watermark is not showed, but once closed and reopened Visual Studio, the watermark appears again.

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Wed Oct 02, 2019 8:05 am

Okay, I've been able to reproduce this issue and have added it to our issue-tracking software with id=2248 - as you can see, this issue has already been resolved, and the resolution to it will become available later today in a new NuGet package.
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Wed Oct 02, 2019 5:10 pm

Hi, this version solved the problem in the demo, but in my real project I'm still see watermark. In it, I create dinamically the chart, something keep wrong. Could you test it in a page where the chart is created dinamically in code behind?

regards

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: ASP.NET enable web site license

Post by Christopher » Thu Oct 03, 2019 7:07 am

There's a page in the TeeChart WebDemo that creates a chart dynamically at runtime:
devenv_aWY9l0dWOC.png
devenv_aWY9l0dWOC.png (76.71 KiB) Viewed 35293 times
This page and chart appears without a watermark using the latest NuGet version:
firefox_TVYauDtaKv.png
firefox_TVYauDtaKv.png (53.74 KiB) Viewed 35293 times
If you still have problems in this area, could you please create a minimal, reproducible example and upload it to:

http://steema.net/uploads/
Best Regards,
Christopher Ireland / 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

Hermes
Newbie
Newbie
Posts: 15
Joined: Fri May 24, 2019 12:00 am

Re: ASP.NET enable web site license

Post by Hermes » Thu Oct 03, 2019 3:23 pm

Hi, i will try, but it is no easy.
In a windows service the teechart is created and serialized, via WCF comes to WebSite where is deserialized in a new webchart. I've know the windows service got the license because it generates pdfs without watermark.
TeechartLicenseError_VIII.png
TeechartLicenseError_VIII.png (194.31 KiB) Viewed 35282 times
In the website, no matter the license files are present or not, the chart is shown the same way (with watermark)......
TeechartLicenseError_VII.png
TeechartLicenseError_VII.png (74.42 KiB) Viewed 35282 times

Post Reply