Enable TeeChart for .NET in website project
Enable TeeChart for .NET in website project
I am new to Visual studio, .NET and TeeChart. I have issue to enable TeeChart license in my .NET website project (framework 4). I added "App_LocalResources" folder with the "Steema.resx" file from the website project in https://github.com/Steema/TeeChart-for- ... eb-samples and my TeeChart license in my project. However, the license is not enabled and the watermark still presents.
Besides, I tried with the website project from the link https://github.com/Steema/TeeChart-for- ... eb-samples and it is also not working for most of time (I did see the watermark disappeared for a few builds which I have no idea why). I tried to build and debug several times.
FYI, I have checked my license in https://www.steema.com/linkIn/License_information_check and it is still valid. I have also go through the posts, http://support.steema.com/viewtopic.php ... 649#p76645 and http://support.steema.com/viewtopic.php ... c512f08649. I can't get any workable solution from them.
Will there be any files (eg. web.config etc) that I should edit to enable the license? Any other solutions? Thank you.
Besides, I tried with the website project from the link https://github.com/Steema/TeeChart-for- ... eb-samples and it is also not working for most of time (I did see the watermark disappeared for a few builds which I have no idea why). I tried to build and debug several times.
FYI, I have checked my license in https://www.steema.com/linkIn/License_information_check and it is still valid. I have also go through the posts, http://support.steema.com/viewtopic.php ... 649#p76645 and http://support.steema.com/viewtopic.php ... c512f08649. I can't get any workable solution from them.
Will there be any files (eg. web.config etc) that I should edit to enable the license? Any other solutions? Thank you.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
Hello,
I've just modified this example so it can run with the latest version of TeeChart's NuGet. You may need to deinstall the NuGet first and then reinstall it to get it to work, as otherwise the necessary TeeChart.dll will not get put into the website's Bin folder.
Once you've got it running, you should see the watermark, i.e. The next step it to substitute in the content of the TeeChart.licenses file which you can find in the project here. The content of the file in the repo is 'PExp' - you should replace this with the string you find in your valid TeeChart.licenses file (about 1925 characters). Now rebuild the project and run - here the watermark disappears:
I've just modified this example so it can run with the latest version of TeeChart's NuGet. You may need to deinstall the NuGet first and then reinstall it to get it to work, as otherwise the necessary TeeChart.dll will not get put into the website's Bin folder.
Once you've got it running, you should see the watermark, i.e. The next step it to substitute in the content of the TeeChart.licenses file which you can find in the project here. The content of the file in the repo is 'PExp' - you should replace this with the string you find in your valid TeeChart.licenses file (about 1925 characters). Now rebuild the project and run - here 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: Enable TeeChart for .NET in website project
Hello,
In followup to this question. For a web project, generally older format web projects, where no AssemblyInfo.cs file is present, the TeeChart license file, "TeeChart.licenses", should be placed in the "App_LocalResources" folder.
Regards,
Marc
In followup to this question. For a web project, generally older format web projects, where no AssemblyInfo.cs file is present, the TeeChart license file, "TeeChart.licenses", should be placed in the "App_LocalResources" folder.
Regards,
Marc
Steema Support
Re: Enable TeeChart for .NET in website project
In my web site project without assembly file, adding the license file in "App_LocalResources" folder doesn't remove the watermark. Is "Steema.resx" file needed to be put in App_LocalResource folder? Can we use the same "Steema.resx" file as the one from https://github.com/Steema/TeeChart-for- ... eb-samples or we have to create ourselves? FYI, the watermark still presents even I added the App_LocalResources folder with license file and "Steema.resx" file. I used the latest TeeChart version, 4.2021.8.23 and .NET framework 4.
Any other files that need to be modified? Thanks.
Any other files that need to be modified? Thanks.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
In my opinion, the first step is to ensure the example in my first message of this thread works for you using your licence without the watermark. It is not clear from what you say whether this is the case or not; can you please confirm that you can run this example without the watermark showing?
If you can, then this will help in enabling the license to correctly work in other examples. If you cannot get the example working, then I can see two possibilities:
If you can, then this will help in enabling the license to correctly work in other examples. If you cannot get the example working, then I can see two possibilities:
- I haven't explained in enough detail the changes needed to make it work
- There is a configuration set on your machine that affects the website's execution
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: Enable TeeChart for .NET in website project
The example in your first message of this thread (after your modification, using latest version TeeChart's NuGet) works (watermark disappeared). Besides, using the same project (the one before your modification, from https://github.com/Steema/TeeChart-for- ... eb-samples) also works after I updated TeeChart's NuGet to latest version. It is not working (watermark appears) using older TeeChart's NuGet version (4.2018.10.27 and .NET Framework 3.5).
My current issue is on my own web site project without assemblyinfo file. The license is not enabled (shows watermark) even I added "App_LocalResource" folder with "Steema.resx" and TeeChart license file, and upgraded to latest version TeeChart's NuGet (4.2021.8.23).
Thank you.
My current issue is on my own web site project without assemblyinfo file. The license is not enabled (shows watermark) even I added "App_LocalResource" folder with "Steema.resx" and TeeChart license file, and upgraded to latest version TeeChart's NuGet (4.2021.8.23).
Thank you.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
Excellent.vfc wrote: ↑Tue Sep 28, 2021 11:52 amThe example in your first message of this thread (after your modification, using latest version TeeChart's NuGet) works (watermark disappeared). Besides, using the same project (the one before your modification, from https://github.com/Steema/TeeChart-for- ... eb-samples) also works after I updated TeeChart's NuGet to latest version.
Did you send an example project that wasn't working to Marc, my colleague, or am I misremembering? Either way, if you could either upload a project to this forum or paste a URL to a minimal, reproducible example then we can have a look at it here.vfc wrote: ↑Tue Sep 28, 2021 11:52 amMy current issue is on my own web site project without assemblyinfo file. The license is not enabled (shows watermark) even I added "App_LocalResource" folder with "Steema.resx" and TeeChart license file, and upgraded to latest version TeeChart's NuGet (4.2021.8.23).
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: Enable TeeChart for .NET in website project
I created another simple .NET website project that used Steema TeeChart and the license cannot be enabled as well. I sent an email to Marc with the project attached (do note that the content in TeeChart license file has been removed). The project is big and hence cannot be uploaded here. Sorry for any inconvenience caused. Looking forward to you reply. Thanks.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
Can you please give me step by step instructions on how to create a project such as yours from scratch in Visual Studio 2022? I need these to be able to understand why there seem to be so many elements missing from 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 |
Re: Enable TeeChart for .NET in website project
Sorry, I used Visual Studio 2019. My steps are listed in the attached Excel file.
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
Hello,
I also have Visual Studio 2019 installed, and these are the project options it gives me: and: As you can see, I do not seem to have the 'ASP.NET Empty Web Site' you use: Do you know where I can obtain this Visual Studio template from?
I also have Visual Studio 2019 installed, and these are the project options it gives me: and: As you can see, I do not seem to have the 'ASP.NET Empty Web Site' you use: Do you know where I can obtain this Visual Studio template from?
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: Enable TeeChart for .NET in website project
I obtained it by searching in the same page as yours.
Can you check whether the tools/features I have are same with yours?
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Enable TeeChart for .NET in website project
Hello,
Okay, got it - I was missing the 'Additional project templates (previous versions)': Which gives your empty project template: The solution to your problem therefore is to add an AssemblyInfo.vb file to your project: The AssemblyInfo.vb file should contain the following: Running the project now shows Charts without the watermark:
Okay, got it - I was missing the 'Additional project templates (previous versions)': Which gives your empty project template: The solution to your problem therefore is to add an AssemblyInfo.vb file to your project: The AssemblyInfo.vb file should contain the following: Running the project now shows Charts without the watermark:
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 |