Hi,
We have pursached the following products:
Aspose.Imaging for .NET
Aspose.PDF for .NET
We are facing an error when we are trying to use it in Microsoft IIS Role.
It works fine in Microsoft .net winform.
OS: Windows 2019
Lisense info:
Developer Small Business
1 Developer And 1 Deployment Location
Professional
3.0
Thanks in advanced,
Eliran
@elirank
If possible, can you please share a sample application in .zip format with us so that we can test it in our environment and address it accordingly. Please make sure that you are using the latest versions of the APIs before sharing the requested information.
string FilesPath = @"C:\inetpub\wwwroot\wss\VirtualDirectories\80\1.pdf";
string FilesPath2 = @"C:\inetpub\wwwroot\wss\VirtualDirectories\80\2.pdf";
string Error = "";
try
{
Aspose.Pdf.License CompressPdfLic = new Aspose.Pdf.License();
CompressPdfLic.SetLicense("Aspose.PDF.NET.lic");
System.IO.Stream Stream_ = new System.IO.MemoryStream();
Aspose.Pdf.Document PdfDocument = new Aspose.Pdf.Document(FilesPath);
Aspose.Pdf.Document PdfDocument2 = new Aspose.Pdf.Document(FilesPath2);
PdfDocument.Pages.Add(PdfDocument2.Pages);
PdfDocument.Save(Stream_);
}
catch (Exception ex)
{
Error = ex.Message; // The license is not valid for this product
}
@elirank
We have sent you a private message where you can please share your license with us in .zip format. This will help us in investigating the issue and address it accordingly.
@elirank
We received and tested your license. It worked fine in our environment with 24.3 version of the API. Can you please make sure that you are using it with the latest version of the API?
image.png (9.1 KB)