Hi,
We are new to using TeeChart .NET and have the component on several forms which are compiled into a .Net DLL. We have it working without showing the evaluation message when running the application in debug or release. The TeeCart.License file is included as an Embedded Resource as per the instructions for using the license file in both the dll and the main exe.
When we come to distribute our application, we use Netz to compress the application and several DLLs, including the ones containing the forms with TeeChart .NET component, into the main executable. But when we run the application the TeeChart control now shows the evaluation notice.
Any help gratefully received.
Regards,
Sean
TeeChart License not working when compressing application
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: TeeChart License not working when compressing application
Hello Sean,
is this the Netz you mean here?
https://madebits.github.io/#r/msnet-netz-compressor.md
If so, then I'm not sure how we can help as we have no experience using this application. I read here that:
is this the Netz you mean here?
https://madebits.github.io/#r/msnet-netz-compressor.md
If so, then I'm not sure how we can help as we have no experience using this application. I read here that:
Which is important, as the licenses file is encrypted and TeeChart uses encryption algorithms to read it—could this be the reason why you are experiencing this problem?By default .NETZ supports compression using #ZipLib or .NET 2.0’s IO.Compression.DeflateStream. Additional compression providers can be created if necessary. Theoretically new compression providers can also include encryption, but no such providers are included out of the box.
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: TeeChart License not working when compressing application
Hi Christopher,
Yes, we are using .NetZ you've indicated but it does not use any encryption.
We do not have a problem with any other embedded resources using this compression tool, so why can't TeeChart read the license from the decompressed embedded resources at runtime?
Is there any other way to package the license at runtime?
regards,
Sean
Yes, we are using .NetZ you've indicated but it does not use any encryption.
We do not have a problem with any other embedded resources using this compression tool, so why can't TeeChart read the license from the decompressed embedded resources at runtime?
Is there any other way to package the license at runtime?
regards,
Sean
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: TeeChart License not working when compressing application
Hello Sean,
If we then double-click on the exe, the watermark disappears:
yes, yes there is, you don't have to embed the license. As long as the license is in the same directory as the TeeChart.dll then it should work—for example, a simple project built in Release with the license set to 'Copy always':
If we then double-click on the exe, the watermark disappears:
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: TeeChart License not working when compressing application
Hi Christopher,
I thought we weren't allowed to distribute the TeeChart.Licenses file?
Can you confirm if this is not the case and we can distribute the file with the application?
Regards,
Sean
I thought we weren't allowed to distribute the TeeChart.Licenses file?
Can you confirm if this is not the case and we can distribute the file with the application?
Regards,
Sean
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: TeeChart License not working when compressing application
Hi Sean,
distributing the file is not contrary to our licensing agreement, as TeeChart.dll requires a valid TeeChart.licenses file to be distributed with it in order to remove the watermark. Usually the licenses file is distributed as an embedded resource within the exe binary, but even so it is transparent and can be easily read by reflection.
The question is: does moving the licenses file outside the exe binary as a non-embedded file resolve your issue?
distributing the file is not contrary to our licensing agreement, as TeeChart.dll requires a valid TeeChart.licenses file to be distributed with it in order to remove the watermark. Usually the licenses file is distributed as an embedded resource within the exe binary, but even so it is transparent and can be easily read by reflection.
The question is: does moving the licenses file outside the exe binary as a non-embedded file resolve your issue?
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: TeeChart License not working when compressing application
Hi Christopher,
Yes, using the license file in the same folder as TeeChart.dll resolves the issue.
Thanks for your help.
Regards,
Sean.
Yes, using the license file in the same folder as TeeChart.dll resolves the issue.
Thanks for your help.
Regards,
Sean.