Hi team,
Do I need to add my order ID and user ID in .lic file? if so how can I get my user ID
and will the above license work for lates version of aspose(Aspose.Pdf,Aspose.Words,Aspose.Cells,Aspose.Slides,Aspose.BarCode)
Hi team,
Do I need to add my order ID and user ID in .lic file? if so how can I get my user ID
and will the above license work for lates version of aspose(Aspose.Pdf,Aspose.Words,Aspose.Cells,Aspose.Slides,Aspose.BarCode)
Cause
You do not need to include your order ID and user ID in the .lic
file. The license file itself is a plain text XML file that contains the necessary details, such as the product name and subscription expiry date. Modifying the file can invalidate it, so it’s best to keep it as is.
Solution
To apply the license, you simply need to use the SetLicense
method in your code. This method can accept the file name of your license file, which should be placed in the same directory as your application or specified with a full path.
Code
Here’s a simple example of how to set the license in your application:
// Create a new License object
License license = new License();
// Set the license file
license.SetLicense("Aspose.Total.lic");
Make sure that the license file is accessible at the specified path.
Next Steps
If you have any further questions or need additional assistance, please feel free to reach out!
You do not need to add Order ID
or User ID
to the .lic
file. Aspose.Total for .NET includes a unified license that works with all .NET-based products including:
Aspose.Cells
Aspose.Words
Aspose.Pdf
Aspose.Slides
Aspose.BarCode
The following example assumes you have a license file, i.e., Aspose.Total.NET.lic
and you’re working in a .NET (Core or Framework) application. See the example on how to set license for different .NET APIs for your reference.
using System;
using Aspose.Cells;
using Aspose.Words;
using Aspose.Pdf;
using Aspose.Slides;
using Aspose.BarCode.Generation; // or Aspose.BarCode.BarCodeRecognition if using barcode reader
namespace AsposeLicenseDemo
{
class Program
{
static void Main(string[] args)
{
string licensePath = "Aspose.Total.NET.lic"; // Full path to your license file
try
{
// Apply license to Aspose.Cells
var cellsLicense = new Aspose.Cells.License();
cellsLicense.SetLicense(licensePath);
// Apply license to Aspose.Words
var wordsLicense = new Aspose.Words.License();
wordsLicense.SetLicense(licensePath);
// Apply license to Aspose.Pdf
var pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense(licensePath);
// Apply license to Aspose.Slides
var slidesLicense = new Aspose.Slides.License();
slidesLicense.SetLicense(licensePath);
// Apply license to Aspose.BarCode
var barcodeLicense = new Aspose.BarCode.License();
barcodeLicense.SetLicense(licensePath);
Console.WriteLine("Aspose.Total license applied to all products successfully.");
}
catch (Exception ex)
{
Console.WriteLine("Failed to apply Aspose license: " + ex.Message);
}
}
}
}
Moreover, see the documents on how to set license for different .NET APIs for your reference.
Let us know if we can be of any further help.
I’m facing an issue after upgrading to a newer version of Aspose.Total.
Aspose.Total.lic
file provided by your team.code for initialization
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace email2.Utils.Documents
{
public static class Initialization
{
public static void Init()
{
var lic = "Aspose.Total.lic";
try
{
var pdfLicense = new Aspose.Pdf.License();
pdfLicense.SetLicense(lic);
var wordsLicense = new Aspose.Words.License();
wordsLicense.SetLicense(lic);
var cellsLicense = new Aspose.Cells.License();
cellsLicense.SetLicense(lic);
var slidesLicense = new Aspose.Slides.License();
slidesLicense.SetLicense(lic);
var barCodesLicense = new Aspose.BarCode.License();
barCodesLicense.SetLicense(lic);
}
catch (Exception ex)
{
CLog.Log("Error initializing VPS with Aspose licenses:" + lic);
CLog.Log(ex);
throw;
}
}
}
}
SetLicense()
Could you please confirm if this license is still valid for the newer version?
Order ID:250703065753
License File Date: july 3,2025
Current Aspose Version: latest version(25)
Please advise whether we need a new license file or if something else might be affecting this. and FYI we are using .net framework
Thanks,
Bhavya
Could you please provide us your new license file. Please do not directly attach the license file here in the forums. Regarding how to send a license, please refer to the following document.
https://forum.aspose.com/t/how-to-send-license-file-to-support-team/225542
Once we receive the license, we will start investigating the issue. By the way, which specific Aspose (.NET) API causes the issue or all APIs you are using are causing the issue?
Thanks for the response,
Yes I have shared the fail and
At this point, none of the Aspose APIs are working with our Aspose.Total.lic
file after upgrading. We’re using multiple products:
We call .SetLicense("Aspose.Total.lic")
for each one (in a try-catch), but as soon as the first license call runs, it throws the error “Error initializing VPS with Aspose licenses: Aspose.Total.lic”
Thank you for sharing your license via private message. Upon reviewing your license, I noticed that your license is specifically for the Aspose.Words Product Family APIs. This means you can use it exclusively with the Aspose.Words Product Family APIs and not with other APIs such as:
If you wish to work with the APIs mentioned above, you would need either their individual licenses or an Aspose.Total for .NET license.
I hope this clarifies everything. Please feel free to reach out if you have any further questions.
Thanks,
But I have requested for Aspose.Total temporary license itself and can You please send me the license file for Total
Thanks,
Bhavya