.NET 6 Asp.Net Core Licence Issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

.NET 6 Asp.Net Core Licence Issue

Post by mikea » Tue Jan 04, 2022 10:02 pm

Hi, I have a licence for 'TeeChart for NET Standard Business Edition '. I've created a basic .NET 6 Asp.net core app using the 'Asp.net Core Empty' template and attempted to simply return a png from a GET endpoint. Although I have embedded the Teechart.Licences file as a resource, it keeps displaying the evaluation watermark. Can you let me know if there's an additional step to avoid that or if it's not supported in this context?

Thanks

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Wed Jan 05, 2022 11:10 am

Hello,

I've added a new .NET 6.0 Web example to our GitHub repos here:
https://github.com/Steema/TeeChart-NET- ... ebAppNET60

If you replace the contents of the dummy TeeChart.licenses with the contents of your file, it should work for 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

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Wed Jan 05, 2022 2:51 pm

Thanks, Christopher. The example you gave is not an api - although it appears to be under a 'Web-Api' folder. Would you be able to provide a very simple example of a GET api endpoint returning an image. If you use the asp.net core empty template (.NET 6), reference the Teechart package and use:

app.MapGet("/image", () =>
{
var chart = new Steema.TeeChart.TChart();
var series = chart.Chart.Series.Add(new Steema.TeeChart.Styles.Bar());
chart.Chart.Series[0].FillSampleValues();
MemoryStream ms = new System.IO.MemoryStream();
chart.Export.Image.PNG.Save(ms);
ms.Flush();
ms.Position = 0;
return Results.File(ms, "image/png", $"image.png");
});

Should that work OK? Appreciate your help on this.

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Wed Jan 05, 2022 5:26 pm

Hello,
Should that work OK? Appreciate your help on this.
You're very welcome. I've created a new .NET 6.0 ASP.NET Core project from the empty template and have left it here:
https://github.com/Steema/TeeChart-NET- ... SPNETEmpty

The code is very similar to yours:
Screenshot from 2022-01-05 18-24-20.png
Screenshot from 2022-01-05 18-24-20.png (55.65 KiB) Viewed 14097 times
And when the TeeChart.licenses file has valid content, it gives me:
Screenshot from 2022-01-05 18-16-21.png
Screenshot from 2022-01-05 18-16-21.png (29.64 KiB) Viewed 14097 times
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

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Wed Jan 05, 2022 8:53 pm

Thanks for the quick reply, Christopher. Unfortunately, I still get the watermark when I replace your Teechart.Licences content with my own. Can I just check the following properties with you that I got from the Steema online licence checker:

Start Date Wed Nov 22 2017
Expiry Date Tue Jan 03 2023
Assembly name teechart.standard
Assembly name teechart.standard.wpf
Assembly name teechart.standard.uwp
Assembly name teechart.standard.netstd
Assembly name teechart.business
Assembly name teechart.business.winform
Assembly name teechart.business.wpf
Assembly name teechart.business.uwp
Assembly name teechart.business.server
Product Id 1025
Product name 931

Can you tell from those properties if my licence should be valid in the context discussed? Thanks again!

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Thu Jan 06, 2022 12:02 pm

Hello,
Can you tell from those properties if my licence should be valid in the context discussed? Thanks again!
Your license is valid. I've checked that a similar license works with the example, and it does.

To make the example work, I open the TeeChart.licenses file here and replace 'PExp' with the much longer string in my valid license file. Then I run the example and the watermark is not present, as expected.

If you are still experiencing problems with the example I posted on GitHub for you, could you please send your TeeChart.licenses file to sales@steema.com and we'll double-check it for 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

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Thu Jan 06, 2022 2:52 pm

Thanks, Christopher. I simply cloned the business samples repo, opened the ASPNETEmpty solution and replaced the content of the TeeChart.licences resource with my own. On running, it continues to display the watermark.

I will do as you suggest and forward the licence file to sales@steema.com. Cheers.

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Fri Jan 07, 2022 11:30 am

Hi Christopher, Gemma checked the licence file and thinks it is fine. Would it be possible for me to e-mail you my licence file and for you to swap it in as discussed and check the result? At that point, we should have an identical file set.

Also - are there any local environment differences that might affect this?

Thanks again for your help.

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Fri Jan 07, 2022 1:58 pm

Hello,

No problem; I'll ask Gemma to forward your license to me to check, and I'll get back to you with the results.
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

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Fri Jan 07, 2022 2:29 pm

Great, thanks!

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Fri Jan 07, 2022 4:30 pm

Hello,

there is a problem with the licensing code in TeeChart.Business.Server.dll for .NET 6.0 - please accept our apologies for the error. However, not all is lost - you can still use TeeChart.Business.Server.dll for .NET 5.0 in the example .NET 6.0 ASPNETEmpty project, and your license will work.

To do this, please reference the assemblies directly from the NuGet package on your hard disk, which is usually located under your User - in my case it is:
C:\Users\Chris\.nuget\packages\steema.teechart.net.business\5.2021.12.20\lib\net5.0
Screenshot from 2022-01-07 17-21-25.png
Screenshot from 2022-01-07 17-21-25.png (17.04 KiB) Viewed 14001 times
Add these two assemblies as COM references to the project - you will also need to manually install two NuGet dependencies (one of which is a beta version), namely: Which will give you:
Screenshot from 2022-01-07 17-16-18.png
Screenshot from 2022-01-07 17-16-18.png (16.84 KiB) Viewed 14001 times
Or:
Screenshot from 2022-01-07 17-16-58.png
Screenshot from 2022-01-07 17-16-58.png (100.02 KiB) Viewed 14001 times
Replacing the contents of your TeeChart.licenses file with those of the TeeChart.licenses file in the project produces an image without a watermark.

Again, apologies for the error on our part in not ensuring the compatibility of our .NET 6.0 assembly. This will be remedied as soon as possible 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

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Mon Jan 10, 2022 12:43 pm

Hello,

Just to let you know there is a new NuGet available for TeeChart.NET for Business:
https://www.nuget.org/packages/Steema.T ... .2022.1.10

I've checked this NuGet works when using the .NET 6.0 version of TeeChart.Business.Server.dll with your particular TeeChart.licenses.
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

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Mon Jan 10, 2022 2:42 pm

That's excellent, thanks so much for your help with this!

mikea
Newbie
Newbie
Posts: 8
Joined: Wed Nov 22, 2017 12:00 am

Re: .NET 6 Asp.Net Core Licence Issue

Post by mikea » Mon Jan 10, 2022 2:56 pm

Yep, all good now, thanks again!

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

Re: .NET 6 Asp.Net Core Licence Issue

Post by Christopher » Mon Jan 10, 2022 3:11 pm

Hello,
mikea wrote:
Mon Jan 10, 2022 2:56 pm
Yep, all good now, thanks again!
Very glad to hear it, and of course you're very welcome.
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

Post Reply