License not being set

I’ve read through documentation, ive read through forums and cant seem to figure out the issue.

First, i went and downloaded the license from my account. Next i downloaded dll package for a version that was released before the expirey of my license.

I have both the dll and the lic files in the same folder and have also set the liense in code using the file name as directed.

Then i try to execute code and get the at most 4 elements(for any collection) error for evaluation mode.

Details:
Aspose.PDF for .NET: 20.1 (release date 1/3/2020)

XXX Developer Small Business Limited to one developer, limited to one physical location XXX XXX This is not a redistributable license Aspose.PDF for .NET Enterprise XXX 20210417 3.0 https://purchase.aspose.com/policies/use-license XXX

Is there something i am missing? Thank you!

@cracomm

Have you made sure that your license is not being used somewhere else as well? Please share your license file with us in a private message which we are sending you shortly. We will test it in our environment and address the issue accordingly.

@cracomm

Thanks for sharing the license in the private message. We have tested it with 20.1 version and noticed that it threw below exception:

System.ArgumentException: 'Unsupported algorithm'

   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=z9RxA8cm3d$Pj_mkC93c2k8g=(Object #=zgTwFWD8=)
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=z$psCTd9uilQ_E897MOOfeik=()
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=zZ4sFaMe519iT0TtUO0x2TsXs0n$T_uSIk_qRQqWck3B6(Object #=zgTwFWD8=, UInt32 #=zSldyLMY=)
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=zKueZGYp4whVzon6G7_w9QDo=(Boolean #=zgTwFWD8=)
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=zfyvdYNe6BZJIKgXWRWQ74RXMlElV()
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=zjZ1Fpdl7PWTa3tPQsBZH7QE=(Object[] #=zgTwFWD8=, Type[] #=zSldyLMY=, Type[] #=z7slDUXU=, Object[] #=zsArwSIw=)
   at #=qWLpiLfP6tuYiY7kWs75sJqq0Oql3lzBxi5AK5X9oaYU=.#=zftt_cB9LO_YG1dn46w==(Stream #=zgTwFWD8=, String #=zSldyLMY=, Object[] #=z7slDUXU=, Type[] #=zsArwSIw=, Type[] #=zBp9xzCg=, Object[] #=zNb042lo=)
   at Aspose.Pdf.License.SetLicense(String licenseName)

Therefore, an issue as PDFNET-51458 has been logged in our issue management system for further investigation. We will look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.

We are sorry for the inconvenience.

ok thank you, as noted this was the license i just downloaded out of the site admin.
in meantime i will try to download other releases to see if i can find one that will work.

@cracomm

We have investigated the ticket and found that you have received License that uses SHA256 hash algorithm which is supported from version 21.3.

thank you its all good now.

1 Like

The issues you have found earlier (filed as PDFNET-51458) have been fixed in Aspose.PDF for .NET 22.3.