Hi,
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
You must set the license before using any other Aspose.Cells API(s). So please make sure, you are setting the license first and then using other API(s).
Besides that, each Aspose component has its own license class, so make sure you are setting the license of Aspose.Cells separately with its own license class. For example, Aspose.Cells license class’s full name is Aspose.Cells.License.
Please place your license file in any directory, let’s say, you place your license file in c:\mydir, then the license file path will be c:\mydir\Aspose.Total.lic.
Once, you have right file path, then you can set your license using the following code.
C#
string licPath = @“c:\mydir\Aspose.Total.lic”;
Aspose.Cells.License lic = new Aspose.Cells.License();
lic.SetLicense(licPath);
Hi,
Hi,
Thanks for your further input.
Since you have upgraded to new version and your license is more than 1-year old, so your license is incompatible with the new version.
Now, you will have to either get a new license by renewing your license subscription or you will have to use your existing license and existing code without upgrading to new version.
If you still want to upgrade your code, then please contact Aspose.Purchase department and purchase a new license for yourself.
Hi,
Hi,
Thanks for your feedback.
In this case, please make sure, you are setting license before using any other Aspose.Cells APIs. The very first code to be executed should be setting a license.
And please also make sure, that you are setting license with Aspose.Cells.License class, because there are other classes too e.g Aspose.Words.License, Aspose.Slides.License etc.
And in case of ASP.NET web pages, you should set license inside Page_Load or Application_Start event.
Ok, I tried moving the setting of the license code to other places - page load, etc. no luck, still the same error. I tried, removing version 7.4 dll and replaced it with the 4.9 dll and it works again, so there is something going on with the 7.4 version.
On a side note, like I had said in a previous post, I know for a fact that the License file exists in that folder because I did a File.Exists(‘filepath to license file’) and it returned True. Also, our license is not expired, I am using the Aspose.Cells.License class, I set the license before I use any of the Aspose API’s and it worked in version 4.9. I know it is probably difficult to debug this sort of issue, but I am not sure what else to do. Any more suggestions would be helpful.
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
In order to investigate this issue further, please send us your license file. Please do not attach the license file at this thread.