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

Free Support Forum - aspose.com

Exception thrown in SetLicence

Hello Support Team,

We are currently migrating to .NET6 and encounter problems in setting the licence for the Aspose products.

For Aspose.PDF we receive ‘Exception of type ‘System.Exception’ was thrown.’
bei #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zxuF$jnLgINNQfljIuekeJx2UcJzXGCQgp6ZT7fL$rkwB(Object #=ztP_oExU=)
bei #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z0wv4aWr_StW7lzxSbLraXQc=()
bei #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeIevjL$Sx855B4bMruEAuR_ZPCBAV8OEI1OZfyM=(Object #=ztP_oExU=, UInt32 #=zAnxkIpI=)
bei #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
bei #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zNqP3E2sQff20dJ05o_iXWIThVoi2Sk_nmGhVExA=(Object[] #=ztP_oExU=, Type[] #=zAnxkIpI=, Type[] #=zmX1PT28=, Object[] #=zbYQAeF8=)
bei Aspose.Pdf.License.SetLicense(String licenseName)

For Aspose.HTML we also receive ‘Exception of type ‘System.Exception’ was thrown.’
bei .(Object )
bei .(Object )
bei . ()
bei .()
bei .(Object[] , Type[] , Type[] , Object[] )
bei .(Stream , String , Object[] , Type[] , Type[] , Object[] )
bei Aspose.Html.License.SetLicense(String licenseName)

Aspose.Words, Aspose.Cells and Aspose.Email are working well.

We are using the licence file as an embedded resource and set the resource name in SetLicence.

Hence it is .NET6 RC1 we are not expecting that everything works, but is there already anything known about this? And would it be fixed until Final Release in Novembre?

Thank you very much for a feedback.

Best Regards,

1 Like


Please note, these are the known issues regarding .NET Framework 6.0 with Aspose.PDF for .NET and Aspose.HTML for .NET APIs. We have already logged the following tickets for your mentioned libraries.

  • PDFNET-50608
  • HTMLNET-3386

We have linked the respective tickets with the thread. Once we have an update on any of the tickets, we will let you know here.

Thank you Amjad.


You are welcome.

Adding to @Travico’s issue, I confirm that licensing Aspose.Words (v21.10.0) does work however Aspose.Svg (v21.9.0) and Aspose.Fonts (v21.10.0) throw the same exception in .NET6.0 RC1 when using a Total license as an embedded resource. I assume there are already known issues logged.


Following issues have been logged in our issue management system for further investigation against this case:

  • SVGNET-39
  • FONTNET-288

We will further look into their details and let you know as soon as they are resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.

The issues you have found earlier (filed as FONTNET-288) have been fixed in Aspose.Font for .NET 21.12.

The issues you have found earlier (filed as HTMLNET-3386) have been fixed in this update. This message was posted using Bugs notification tool by pavel.petrushechkin