Page 1 of 2
ASP.NET enable web site license
Posted: Thu Sep 19, 2019 6:39 pm
by 20086309
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
Re: ASP.NET enable web site license
Posted: Fri Sep 20, 2019 1:46 pm
by Christopher
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 (14.37 KiB) Viewed 35049 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.
Re: ASP.NET enable web site license
Posted: Thu Sep 26, 2019 8:06 pm
by 20086309
Hi,
I did what you've recommended:
- TeechartLicenseError_II.png (20.76 KiB) Viewed 34992 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 (67.38 KiB) Viewed 34992 times
I'm using VisualStudio 2019 Professional and the Target Framework for the web site is .NET Framework 4.7.2.
Re: ASP.NET enable web site license
Posted: Fri Sep 27, 2019 4:00 pm
by 20086309
Hi
In other solution, where its type is WebApplication there is the same problem.
- TeechartLicenseError_III.png (15.21 KiB) Viewed 34974 times
Re: ASP.NET enable web site license
Posted: Fri Sep 27, 2019 5:44 pm
by Christopher
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.
Re: ASP.NET enable web site license
Posted: Fri Sep 27, 2019 6:09 pm
by 20086309
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
Re: ASP.NET enable web site license
Posted: Fri Sep 27, 2019 7:11 pm
by 20086309
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 (8.9 KiB) Viewed 34965 times
but the website keep on showing the watermark.
Any other clue?
Thanks
Re: ASP.NET enable web site license
Posted: Mon Sep 30, 2019 6:10 am
by Christopher
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.
Re: ASP.NET enable web site license
Posted: Mon Sep 30, 2019 2:20 pm
by 20086309
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 (104.23 KiB) Viewed 34938 times
Here the project explorer:
- TeechartLicenseError_VI.png (25.84 KiB) Viewed 34938 times
As I've commented before, in projects type WebApplication an Windows forms, I solved the watermark problem with the same TeeChart.Licences.
Re: ASP.NET enable web site license
Posted: Tue Oct 01, 2019 7:15 am
by Christopher
Hello,
I am using this configuration:
- devenv_OmbZv5Z1EQ.png (46.24 KiB) Viewed 34919 times
Along with a valid TeeChart.licenses file:
- devenv_4LppS0JYQ1.png (8.42 KiB) Viewed 34919 times
And I obtain the following result:
- firefox_FMgLU5I7yW.png (44.03 KiB) Viewed 34919 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.
Re: ASP.NET enable web site license
Posted: Tue Oct 01, 2019 7:35 pm
by 20086309
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.
Re: ASP.NET enable web site license
Posted: Wed Oct 02, 2019 8:05 am
by Christopher
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.
Re: ASP.NET enable web site license
Posted: Wed Oct 02, 2019 5:10 pm
by 20086309
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
Re: ASP.NET enable web site license
Posted: Thu Oct 03, 2019 7:07 am
by Christopher
There's a page in the TeeChart WebDemo that creates a chart dynamically at runtime:
- devenv_aWY9l0dWOC.png (76.71 KiB) Viewed 34848 times
This page and chart appears without a watermark using the latest NuGet version:
- firefox_TVYauDtaKv.png (53.74 KiB) Viewed 34848 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/
Re: ASP.NET enable web site license
Posted: Thu Oct 03, 2019 3:23 pm
by 20086309
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 (194.31 KiB) Viewed 34837 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 (74.42 KiB) Viewed 34837 times