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

Free Support Forum - aspose.com

.NET 6 Release Candidate 1 Support

Performing basic operations with .NET 6 Release Candidate 1 gives me errors:

When trying to set licence:
System.Exception: Exception of type ‘System.Exception’ was thrown.

When trying to generate a basic PDF document:
System.Exception: Exception of type ‘System.Exception’ was thrown.

I have tried with the latest available build on Nuget (21.9.0).

Is .NET 6 support not ready yet? If so, when can we expect it to arrive?

Thanks in advance.

Stack trace for set licence:

System.Exception: Exception of type 'System.Exception' was thrown.

at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zm2cl7e0sXMFI6CAz8GMWXa_CMUfb(Byte[] #=zk9pPDeEfDHy22YjFMAlVx0cxiTST)
at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zPVpv3SzZ1CG$Di_ZuxYXoFoj07C2.#=zxt3_HDWhjN$4oMngrT44m9fvCgAl(#=zs8gGwxHrwrLZ9DXJuKXjng$xZuQI #=zsbRRE7AVBvV3yHW9uMR0FY578JqX)
at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zTqtbr11T7uz9hvN15ZLrQ0E=(String #=z3Wip5cJegV_KU1U2UCRZzT0G7YSz)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zf7dkfEHN3MSp_16VNe0pi9j03P_u.#=zqIcwKZMDy3Q8$arprL6dpBZ2D5JB(String #=zA4HqL1Q6fx2uPZWw9_3LJVI=)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zf7dkfEHN3MSp_16VNe0pi9j03P_u.#=zAdY_up4H0SHCQ_WxCsKHAaiqiR0f()
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zHJlfs2Em$KlgrYM_MYqEa2_WTDpn(String #=zUtwuUIQ=)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zeipXVKFia$bbNYxCsJFt9FUXD$7u(Object #=zOnlNdH_Up8Kjb9JvdUt$InO7FyKI, ResolveEventArgs #=zHhfzUp9CFMKt9iHTtaNZ6ysSXwSR)
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 #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zxuF$jnLgINNQfljIuekeJx2UcJzXGCQgp6ZT7fL$rkwB(Object #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z3oKjnwT0PKmWpniwq5pmOBOAq38bbeWXfFSxHck=(MethodBase #=ztP_oExU=, Boolean #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z8xO7ggDamJCJdp_W1pIVojSMG97gOz5o5BfcaIQ=(#=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4= #=ztP_oExU=, #=q1qifqgbfO3$0lc0sUiNkrTaSFK1NEzFbCILcNw5ryyY= #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeUIgvJDdEIsbJe6MKA==()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zxuF$jnLgINNQfljIuekeJx2UcJzXGCQgp6ZT7fL$rkwB(Object #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z0wv4aWr_StW7lzxSbLraXQc=()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zWHkNMgef8e8BbSeDK1w928k=(#=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4= #=ztP_oExU=, #=q1qifqgbfO3$0lc0sUiNkrTaSFK1NEzFbCILcNw5ryyY= #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeUIgvJDdEIsbJe6MKA==()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zxuF$jnLgINNQfljIuekeJx2UcJzXGCQgp6ZT7fL$rkwB(Object #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z0wv4aWr_StW7lzxSbLraXQc=()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeIevjL$Sx855B4bMruEAuR_ZPCBAV8OEI1OZfyM=(Object #=ztP_oExU=, UInt32 #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zNqP3E2sQff20dJ05o_iXWIThVoi2Sk_nmGhVExA=(Object[] #=ztP_oExU=, Type[] #=zAnxkIpI=, Type[] #=zmX1PT28=, Object[] #=zbYQAeF8=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zMtmAM_kxJVPx8bWzheDKWsk=(Int32 #=ztP_oExU=, Type[] #=zAnxkIpI=, Type[] #=zmX1PT28=, Boolean #=zbYQAeF8=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zPuoA45XCMdHlYrbSXg==(#=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4= #=ztP_oExU=, #=q1qifqgbfO3$0lc0sUiNkrTaSFK1NEzFbCILcNw5ryyY= #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeUIgvJDdEIsbJe6MKA==()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zxuF$jnLgINNQfljIuekeJx2UcJzXGCQgp6ZT7fL$rkwB(Object #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=z0wv4aWr_StW7lzxSbLraXQc=()
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zeIevjL$Sx855B4bMruEAuR_ZPCBAV8OEI1OZfyM=(Object #=ztP_oExU=, UInt32 #=zAnxkIpI=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zFbEgpGbjV$l48im3Ipw7MFmbN7GbaHuddQ==(Boolean #=ztP_oExU=)
at #=qhjhU8nqLJtFY8LRMoZFhVoeECt_CgG4DqITeBJqkpr4=.#=zNqP3E2sQff20dJ05o_iXWIThVoi2Sk_nmGhVExA=(Object[] #=ztP_oExU=, Type[] #=zAnxkIpI=, Type[] #=zmX1PT28=, Object[] #=zbYQAeF8=)
at Aspose.Pdf.License.SetLicense(String licenseName)
at XXX.Aspose.AsposeLicenceHelper.SetLicenceFilePath(String licenceFilePath) in C:\XXX\Aspose\AsposeLicenceHelper.cs:line 10
at XXX.Custom.Extensions.ApplicationBuilderExtensions.UseAsposeLicenceFile(IApplicationBuilder builder, String licenceFilePath) in C:\XXX\Custom\Extensions\ApplicationBuilderExtensions.cs:line 14

Stack trace for basic PDF document:

System.Exception: Exception of type 'System.Exception' was thrown.

at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zm2cl7e0sXMFI6CAz8GMWXa_CMUfb(Byte[] #=zk9pPDeEfDHy22YjFMAlVx0cxiTST)
at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zPVpv3SzZ1CG$Di_ZuxYXoFoj07C2.#=zxt3_HDWhjN$4oMngrT44m9fvCgAl(#=zs8gGwxHrwrLZ9DXJuKXjng$xZuQI #=zsbRRE7AVBvV3yHW9uMR0FY578JqX)
at #=q4IEUrftjYU$par8Q9LJ00tW0gvtn27t33MOXq5jf7M0=.#=zTqtbr11T7uz9hvN15ZLrQ0E=(String #=z3Wip5cJegV_KU1U2UCRZzT0G7YSz)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zf7dkfEHN3MSp_16VNe0pi9j03P_u.#=zqIcwKZMDy3Q8$arprL6dpBZ2D5JB(String #=zA4HqL1Q6fx2uPZWw9_3LJVI=)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zf7dkfEHN3MSp_16VNe0pi9j03P_u.#=zAdY_up4H0SHCQ_WxCsKHAaiqiR0f()
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zHJlfs2Em$KlgrYM_MYqEa2_WTDpn(String #=zUtwuUIQ=)
at #=qllKshT1pDip__5yQ1ZgMiWDnbgdvt6nJ0fuG6Etljzo=.#=zeipXVKFia$bbNYxCsJFt9FUXD$7u(Object #=zOnlNdH_Up8Kjb9JvdUt$InO7FyKI,
ResolveEventArgs #=zHhfzUp9CFMKt9iHTtaNZ6ysSXwSR)
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 #=z$P2adU82JKt3hQv6_ApiicL$ThnU.#=zWv3XDkhCPAEH(String #=zviLWs4g=, String #=zjFf84Qg=, Assembly #=z_xMn9Ds=)
at #=zvGaOXByapX6jeH_xhZumkPZB798T121x3QNAiys=.#=zH7qhMY_iElRO(String #=zjbfNmgA=)
at #=zvGaOXByapX6jeH_xhZumkPZB798T121x3QNAiys=.#=zg_kQBLN5VQfz()
at #=zvGaOXByapX6jeH_xhZumkPZB798T121x3QNAiys=.#=zTihOMaCkjLRf()
at Aspose.Pdf.Text.FontRepository.FindFont(String fontName)
at Aspose.Pdf.Text.TextFragment.#=zl8GmfGSrYjgO(String #=zirC0GyM=)
at Aspose.Pdf.Text.Te
xtFragment…ctor(String text)
at XXX.Services.Implementation.CorrespondenceDocumentEditor.AddText(Page coverPage, String text, Int32 fontSize, Int32 marginBottom, HorizontalAlignment alignment) in C:\XXX\Services\Implementation\CorrespondenceDocumentEditor.cs:line 53
at XXX.Services.Implementation.CorrespondenceDocumentEditor.AddPrimaryContent(String address, String content) in C:\XXX\Implementation\CorrespondenceDocumentEditor.cs:line 29
at XXX.Commands.CorrespondenceGeneratePreviewCommandHandler.Handle(CorrespondenceGeneratePreviewCommand request, CancellationToken cancellationToken) in C:\XXX\Commands\CorrespondenceGeneratePreviewCommandHandler.cs:line 38

@ukpcbenlewis

A ticket as PDFNET-50608 has already been logged in our issue management system to fix this issue as we were able to replicate it in our environment. We have linked the ticket ID with this forum thread so that you will receive a notification once it is rectified. Please be patient and spare us some time.

We are sorry for the inconvenience.

Thanks for the reply @asad.ali. I’m looking forward to hearing when to retest.

1 Like