System.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode

hello All,

Aspose.Pdf version 8.7.0
I am facing with exception below:

1202210715000088, PdfName: D:\Data\ePolicy\1202210715000088.pdf
System.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode.
at Aspose.Pdf.Document.™(Int32 )
at Aspose.Pdf.PageCollection.get(Int32 )
at Aspose.Pdf.PageCollection.get_Item(Int32 index)
at ReportMailer.ClsCare.doPrepare_ePolicy_MV(Object parameters)

what happen with this? … what should I do?

please help

thanks a lot in advance

Regards

and just want to clarify that I am using licensed version of Aspose.Pdf


string rpath = System.IO.Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]);

string aspose_pdf_lic = rpath + “\Aspose.Pdf.lic”;
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense(@aspose_pdf_lic);
lic.Embedded = true;

this problem only occurs on Winform app!

please help me …

thanks

Hello All.

Is it bugs?
Could anybody please confirm?
Thanks & Regards

Hi there,

Thanks for your inquiry.

calistasoft:
hello All,

Aspose.Pdf version 8.7.0
I am facing with exception below:

1202210715000088, PdfName: D:\Data\ePolicy\1202210715000088.pdf
System.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode.
at Aspose.Pdf.Document.™(Int32 )
at Aspose.Pdf.PageCollection.get(Int32 )
at Aspose.Pdf.PageCollection.get_Item(Int32 index)
at ReportMailer.ClsCare.doPrepare_ePolicy_MV(Object parameters)

what happen with this? .. what should I do?

please help

thanks a lot in advance

Regards


Please note the issue occurs when license file is not referenced. Please double check whether you have referenced license file correctly. Hopefully the issue will be resolved after implementing license properly.

Best Regards,
Hi there,

Thanks for your inquiry.

calistasoft:
and just want to clarify that I am using licensed version of Aspose.Pdf

string rpath = System.IO.Path.GetDirectoryName(Environment.GetCommandLineArgs()[0]);

string aspose_pdf_lic = rpath + "\\Aspose.Pdf.lic";
Aspose.Pdf.License lic = new Aspose.Pdf.License();
lic.SetLicense(@aspose_pdf_lic);
lic.Embedded = true;

this problem only occurs on Winform app!

please help me ..

thanks

As suggested above, please double check license implementation. If the issue persist then please share a sample winform application here. So we will test the scenario and will provide you information accordingly. Moreover, please share your license file via email as well.

We are sorry for the inconvenience caused.

Best Regards,
Hi there,

Thanks for your inquiry.

calistasoft:
Hello All.

Is it bugs?
Could anybody please confirm?
Thanks & Regards


No it is not bug, you are facing some issue to your specific scenario. Aspose.Pdf for .NET can be used in any application/platform that support .NET Framework. As requested above, please share some more details. So we will investigate the scenario and will suggest you accordingly.

We are sorry for the inconvenience caused.

Best Regards,

Hi … the license file sent…

thanks

Hi there,


Thanks for sharing your source code and license file. I am looking into your code and will update you our findings soon.

Best Regards,

Hi there,


Thanks for your patience. I have tested the scenario with your shared code and license file using Aspose.Pdf for .NET 8.7.0. But I am afraid I am unable to notice the problem. Please note I have amend your code a bit, as I could not use your code exactly due to missing references. Kindly find used code and sample output file.

We will appreciate it if you please share a sample project to replicate the issue, so we can investigate it further.

We are sorry for the inconvenience caused.

Best Regards,