.NET 6 Asp.Net Core Licence Issue
.NET 6 Asp.Net Core Licence Issue
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
Thanks
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
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.
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 |
Re: .NET 6 Asp.Net Core Licence Issue
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.
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.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
Hello,
https://github.com/Steema/TeeChart-NET- ... SPNETEmpty
The code is very similar to yours: And when the TeeChart.licenses file has valid content, it gives me:
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:Should that work OK? Appreciate your help on this.
https://github.com/Steema/TeeChart-NET- ... SPNETEmpty
The code is very similar to yours: And when the TeeChart.licenses file has valid content, it gives me:
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 |
Re: .NET 6 Asp.Net Core Licence Issue
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!
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!
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
Hello,
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.
Your license is valid. I've checked that a similar license works with the example, and it does.Can you tell from those properties if my licence should be valid in the context discussed? Thanks again!
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 |
Re: .NET 6 Asp.Net Core Licence Issue
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.
I will do as you suggest and forward the licence file to sales@steema.com. Cheers.
Re: .NET 6 Asp.Net Core Licence Issue
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.
Also - are there any local environment differences that might affect this?
Thanks again for your help.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
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.
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 |
Re: .NET 6 Asp.Net Core Licence Issue
Great, thanks!
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
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 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:
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.
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 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:
- SixLabors.ImageSharp - https://www.nuget.org/packages/SixLabors.ImageSharp/
- SixLabors.ImageSharp.Drawing - https://www.nuget.org/packages/SixLabor ... p.Drawing/
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 |
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
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.
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 |
Re: .NET 6 Asp.Net Core Licence Issue
That's excellent, thanks so much for your help with this!
Re: .NET 6 Asp.Net Core Licence Issue
Yep, all good now, thanks again!
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: .NET 6 Asp.Net Core Licence Issue
Hello,
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 |