We are using Aspose.Pdf (Version=10.5.0.0) to Combine Multiple PDF’s into Single PDF and while Setting The License file, we are getting below error.
We tried setting up the License file to read from the Physical file as well as File Stream but we are get the same error. This is intermittent error and the occurrence is not assured and comes randomly in the server.
Usually the issue gets resolved by doing App Pool Recycle and IIS reset which is not an feasible option always on production servers.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
This issue was identified in older version of Aspose.pdf so we went with the Upgrade version hoping that it was fixed in latest versions.
Can you take a look at this issue.
System.NullReferenceException: Object reference not set to an instance of an object. at ?
..?(Stream ) at Aspose.Pdf.License.SetLicense(Stream stream)
Set Licence Memory stream failed
System.IndexOutOfRangeException: At most 4 elements (for any collection) can be viewed in evaluation mode. at Aspose.Pdf.PageCollection.get(Int32 ) at Aspose.Pdf.PageCollection.Add(Page , ?
) at Aspose.Pdf.PageCollection.Add(ICollection , ?
There seem to be multiple posts on this for older versions. The closest seems to be:
Please note that this is getting called against a static variable, so it is basically the same thing as executing in Global.ASAX.