SetLicense throw exception

.NET 6 is released now. I cannot use Aspose PDF anymore, the “SetLicense()” method throws “Exception of type ‘System.Exception’ was thrown”. It works fine with .NET 5. Could you please release a bugfix urgently?

Attached is a simple solution with two projects that are exactly the same, but one is for .NET 5, the second one is for .NET 6. Just put a correct license file named “Aspose.Total.NET.lic” in the output directory and run. .NET 5 version works fine, .NET 6 version throws an exception.

AsposePdfLicenseBug.zip (2.1 KB)

2 Likes

Same problem here. .Net 6 is released and we can not upgrade because SetLicense doesn’t work in Aspose.PDF 21.2.0.0 or 21.11.0 (latest)…but it works in Aspose.Words however!

System.Exception
HResult=0x80131500
Message=Exception_WasThrown
Source=Aspose.PDF
StackTrace:
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=z4xDo39F9MdcGEm2wZYiF18a63TKRox9SPw==(Object #=zXu3sMwY=)
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=zvrbWkL8JkJ125VSOQHEEUIFQ_sEpILZ2yAqT2T8=()
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=z0KicvzDdXSMCQk00xw0yuIiP3vup1z6h0Io10CuZdbEL(Object #=zXu3sMwY=, UInt32 #=zmrllAUM=)
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=zTut2MhEvThnrairR$DqretA_oPYFbx5xyQghPjw=(Boolean #=zXu3sMwY=)
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=z2AD4woqtYDAch5HflGqcDThFjMyzr77Yfw==(Object[] #=zXu3sMwY=, Type[] #=zmrllAUM=, Type[] #=z9uLQscI=, Object[] #=zh6LUchc=)
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=zLKn_kJ8HhmpAHkw37y7EZ_mQASqZcn51Ag==(Stream #=zXu3sMwY=, String #=zmrllAUM=, Object[] #=z9uLQscI=)
at #=qxAsi07iSgr$IoHvuXjuqyXspkpaf$LkIaBoLjQxdm0k=.#=zXJkEJnx6nfALRFdrX0$KhrUbrSrscmp42Q==(Stream #=zXu3sMwY=, String #=zmrllAUM=, Object[] #=z9uLQscI=)
at Aspose.Pdf.License.SetLicense(Stream stream)
at Agile360.Logic.WordTemplates.Agile360WordLogic.Start(SchemaBuilder sb) in C:\Code\Agile360\Agile360.Logic\WordTemplates\Agile360WordLogic.cs:line 18

1 Like

This really is unacceptable. You guys have had months to deal with this. The libraries are supposed to be .NET Standard compatible. The only reason they could be failing like this is if you were using reflection stupidly or something with the obfuscation (my guess).

It’s bad enough that the 20.0 series does this but now if I want a fix I have to re-up my license. Why should I when even the new releases have problems like this?

Very disappointing and the latest in a long line of bugs that we’ve seen in this very expensive platform.

PS - to all, the way I deal with most Aspose bugs is gonna be the way I deal with this one. Keep all your Aspose use in a separate command line process or windows service and invoke it as needed. Then you can use .net framework for that process and .net6 for your actual app.

@bpp @swen.kusel @peter0302

This ETA for this issue is Aspose.PDF for .NET 21.11 which will be released soon. We request for your patience and will share the good news with you as soon as the issue will be fixed.

We are sorry for the inconvenience.

1 Like

And what’s the planned date for that release?

Looks like they deploy each month, more or less at the middle (13th… 15th) NuGet Gallery | Aspose.PDF 23.10.0

So hopefully today or tomorrow?

@swen.kusel, @bpp

The release is under review phase at the moment and we plan to upload it during this week. Yes, you can say that it will probably be available by tomorrow.

@bpp, @swen.kusel

The 21.11 version of the API is now available on NuGet Gallery.

same bug. but for Aspose.Html

System.Exception
Exception of type 'System.Exception' was thrown.
   at    .(Byte[] )
   at    ..( )
   at    .(String )
   at    .(String )
   at    ..(String )
   at    ..()
   at    .(Object , ResolveEventArgs )
   at System.Runtime.Loader.AssemblyLoadContext.InvokeResolveEvent(ResolveEventHandler eventHandler, RuntimeAssembly assembly, String name)
   at System.Runtime.Loader.AssemblyLoadContext.OnResourceResolve(RuntimeAssembly assembly, String resourceName)
   at System.Reflection.RuntimeAssembly.GetResource(QCallAssembly assembly, String resourceName, UInt32& length)
   at System.Reflection.RuntimeAssembly.GetManifestResourceStream(String name)
   at  .(Object )
   at  .(Object )
   at  .(MethodBase , Boolean )
   at  .()
   at  .()
   at  .(Object )
   at  .(Object )
   at  . ()
   at  .()
   at  .()
   at  .()
   at  .(Object )
   at  .(Object )
   at  . ()
   at  .()
   at  .(Object[] , Type[] , Type[] , Object[] )
   at  .(Int32 , Type[] , Type[] , Boolean )
   at  . (  )
   at  .()
   at  .()
   at  .(Object )
   at  .(Object )
   at  . ()
   at  .()
   at  .()
   at  .()
   at  .(Object )
   at  .(Object )
   at  . ()
   at  .()
   at  .(Object[] , Type[] , Type[] , Object[] )
   at  .(Stream , String , Object[] , Type[] , Type[] , Object[] )
   at  .(Stream , String , Object[] )
   at  .(Stream , String , Object[] )
   at Aspose.Html.License.SetLicense(Stream stream)

can you test net6 on all your products

1 Like

@simoncropp

We have already noticed this issue in Aspose.HTML as well as in Aspose.Page. The following tickets have already been logged in our issue tracking system for resolution:

  • PAGENET-309
  • HTMLNET-3386

Above both tickets are under the phase of investigation at the moment. PAGENET-309 is expected to be fixed in 21.11 version of the API which will be released soon. We will further keep you posted on the status of tickets resolution. Please spare us some time.

We apologize for your inconvenience.

Same with Aspose.Font !

Don’t you have unit testing on your products ?

1 Like

@tfipsrd

A ticket as FONTNET-288 has also been already logged in our issue tracking system in order to resolve the issue in Aspose.Font related to the license settings. We have linked it as well with this forum thread and will inform you as soon as it is resolved. Please spare us some time.

We apologize for your inconvenience.

Having same error with Aspose.Html version 21.11.0 here on .NET 6, too.

@Uwe_Keim

The issue related to Aspose.HTML for .NET has been resolved and its fix will be included in the upcoming release i.e. 21.12. We will let you know as soon as the fix is published.

1 Like

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

1 Like

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

1 Like

We’re getting the below error in .Net 6 for ASPOSE.PDF for .NET. Could you please advise how to address this issue?

using Nuget 21.11 version in our API application/

Exception of type ‘System.Exception’ was thrown when SetLicense was called.

Any help is much appreciated.

@NeelimaGoli,

I will help you with this, but I will ask you a couple of things.

Can you please create a new Thread in the forum? The issue probably is due something different and I dont want other forum user to get confused.

Can you post the Code Snippet you are using to load the license?

But do that in the new thread, please.

Thank you Carlos for prompt response!

I’m sorry. How to create a new thread?

@NeelimaGoli,

You click in this button in the list of topic in this forum:

That a new thread or topic. I should have use the word “topic” instead. Sorry for the confusion.