We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Empty Output when PdfFileEditor.Concatenate is run by a Web Service with Anonymous Access

I develop a Web Service that utilizes PdfFileEditor.Concatenate to join several PDF files. The service is vanilla plain C# Visual Studio 2008 Windows Service (what is built by the wizard) and runs under IIS/Windows XP. When I set its Authentication Method to Integrated Windows Authentication in the Properties/Directory Security/Edit dialog - it runs OK. However when I change it to Anonymous - it generates an empty PDF file.


I use Pdf.kit 4.6.0.0 for .NET 2.0

My code is

[WebMethod]
public void TestJoin() {
Aspose.Pdf.Kit.License license2 = new Aspose.Pdf.Kit.License();
license2.SetLicense(“Aspose.Total.lic”);

PdfFileEditor pfe = new PdfFileEditor();
pfe.Concatenate(@“c:\temp\1.pdf”,@“c:\temp\2.pdf”,@“c:\temp\join.pdf” );

}

I do not attach my PDF files as this happen consistently with any PDF files.

See attached screenshot for my Authentication settings - Integrated (runs OK) and Anonymous (fails)

Hi Mark,

I have tested this issue at my end on Windows XP according to your shared specifications, however I couldn’t notice any issue at my end. Can you please share the Web Service project along with the sample files you’re having problem with, so I would be able to test the issue with your particular scenario? You’ll be updated accordingly.

We’re sorry for the inconvenience.
Regards,