Hard exception received: At most 4 elements (for any collection) can be viewed in evaluation mode
Here are the details of some of the aspose products that we are using.
Aspose Pdf: 10.2.0.0
Aspose words: 220.127.116.11
Aspose cells: 18.104.22.168
License: Aspose.Total.lic ( Paid version - not a trail)
Subscription Expiry date: 2016-06-19
We are using Aspose to do mail merge related tasks but intermittently receiving “At most 4 elements (for any collection) can be viewed in evaluation mode exception” error in production. I confirm that we are not using the free trail version but using a Full paid version and also the aspose dll’s that we are using has release date < subscription expiry date.
Also, we currently set the license from the disk
Dim license As Aspose.Cells.License = New Aspose.Cells.License()I understand that when a trial version products are used there are two limitations to it…
#2. At most 4 elements can be viewed in evaluation mode.
Currently, in our code the license is not set in Application_Start () but it is set in DoMailMerge() function. I read on few aspose threads that there is no harm in setting the aspose license more than once in code if you are just referring the license file from disk.
in order to cross off the possibility of license not being set properly, in our test environment, I deliberately commented out setting the license code forcing my paid aspose license version to be treated as ‘Trail’ version. Now when i run the mailmerge() I get the Evaluation water mark on the generated mail merge pdf. That is expected because i did not set the license in my test scenario.
Now i tried to do mail merge (also did pdf to word, word to pdf conversion) of files that has more than 4 pages. In this test scenario i expect the following hard exception “At most 4 elements (for any collection) can be viewed in evaluation mode” but was not able to reproduce the exception. I was only able to see the watermark in all these scenarios.
My question is:
#1. Why on production, there was an exception and not a watermark (if at all the license is detected to be trail version)
#2. why in our test scenarios on test environment there is only watermark all the time and no exception? Should i try anything different to get the exception and not just the mailmerge pdf with watermark?