Aspose.Slides in WebAssembly Throws "Algorithm Aes Is Not Supported" Error

Hello,

We’re trying to use Aspose Slides in a WebAssembly that is loaded in a PowerPoint OfficeJS addin. Aspose helps us work with shapes and properties that are not available in the Office JS Interops yet. However, we’re unable to create or load a presentation in this context and instead presented with an error: Algorithm ‘Aes’ is not supported on this platform.

Is Aspose Slides supported in WebAssembly and are there environment settings that need to be set in order for it to load properly?

Thanks,
-Andy

fail: Microsoft.AspNetCore.Components.Web.ErrorBoundary[0]
System.TypeInitializationException: The type initializer for ’ ’ threw an exception.
—> System.PlatformNotSupportedException: Algorithm ‘Aes’ is not supported on this platform.
at d.[1](Object [1])
at d. (Object [1])
at d. ()
at d.[1](Object [1], UInt32 )
at d.(Boolean [1])
at d. ()
at d.[1](Object[] [1], Type[] , Type[] , Object[] )
at d.[1](Stream [1], String , Object[] , Type[] , Type[]


, Object[]
)
at d.[1](Stream [1], String , Object[] )
at .[1](String [1])
at …ctor(String [1])
at …ctor()
at …cctor()
— End of inner exception stack trace —
at d.[1](Object [1])
at d. (Object [1])
at d. ()
at d.[1](Object [1], UInt32 )
at d.(Boolean [1])
at d. ()
at d.[1](Object[] [1], Type[] , Type[] , Object[] )
at d.[1](Stream [1], String , Object[] , Type[] , Type[]


, Object[]
)
at d.[1](Stream [1], String , Object[] )
at d.[1](Stream [1], String , Object[] )
at . (Int64 [1])
at Aspose.Slides.Presentation…ctor(LoadOptions loadOptions)
at Aspose.Slides.Presentation…ctor()
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.ImportShape() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 217
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.b__0_18() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 158
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
System.TypeInitializationException: The type initializer for ’ ’ threw an exception.
—> System.PlatformNotSupportedException: Algorithm ‘Aes’ is not supported on this platform.
at d.[1](Object [1])
at d. (Object [1])
at d. ()
at d.[1](Object [1], UInt32 )
at d.(Boolean [1])
at d. ()
at d.[1](Object[] [1], Type[] , Type[] , Object[] )
at d.[1](Stream [1], String , Object[] , Type[] , Type[]


, Object[]
)
at d.[1](Stream [1], String , Object[] )
at .[1](String [1])
at …ctor(String [1])
at …ctor()
at …cctor()
— End of inner exception stack trace —
at d.[1](Object [1])
at d. (Object [1])
at d. ()
at d.[1](Object [1], UInt32 )
at d.(Boolean [1])
at d. ()
at d.[1](Object[] [1], Type[] , Type[] , Object[] )
at d.[1](Stream [1], String , Object[] , Type[] , Type[]


, Object[]
)
at d.[1](Stream [1], String , Object[] )
at d.[1](Stream [1], String , Object[] )
at . (Int64 [1])
at Aspose.Slides.Presentation…ctor(LoadOptions loadOptions)
at Aspose.Slides.Presentation…ctor()
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.ImportShape() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 217
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.b__0_18() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 158
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
(anonymous) @ invoke-js.ts:176
Tl @ invoke-js.ts:276
$do_icall @ 05ca3de6:0x61449c
$do_icall_wrapper @ 05ca3de6:0x60f3de
$mono_interp_exec_method @ 05ca3de6:0x6012f0
$interp_runtime_invoke @ 05ca3de6:0x610cf3
$mono_jit_runtime_invoke @ 05ca3de6:0x725ecb
$do_runtime_invoke @ 05ca3de6:0x6e67af
$mono_runtime_try_invoke @ 05ca3de6:0x6e722f
$mono_runtime_invoke @ 05ca3de6:0x6e9dac
$mono_wasm_invoke_method_bound @ 05ca3de6:0x8ba965
(anonymous) @ dotnet.native.8.0.7.cvuzldokoz.js:936
ccall @ dotnet.native.8.0.7.cvuzldokoz.js:8008
(anonymous) @ dotnet.native.8.0.7.cvuzldokoz.js:8027
kr @ invoke-cs.ts:273
(anonymous) @ invoke-cs.ts:247
beginInvokeDotNetFromJS @ blazor.webassembly.js:1
invokeDotNetMethodAsync @ blazor.webassembly.js:1
invokeMethodAsync @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
N @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
invokeWhenHeapUnlocked @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
N @ blazor.webassembly.js:1
C @ blazor.webassembly.js:1
dispatchGlobalEventToAllElements @ blazor.webassembly.js:1
onGlobalEvent @ blazor.webassembly.js:1
invoke-js.ts:176 fail: QueBIT.ReportWORQ.Web.Common.UI.Error[0]
ERROR:ProcessError - Type: System.TypeInitializationException Message: Error Message: The type initializer for ’ ’ threw an exception.
The type initializer for ’ ’ threw an exception.
Algorithm ‘Aes’ is not supported on this platform.

  TRACE
  The type initializer for ' ' threw an exception.
     at d.[1](Object [1])
     at d. (Object [1])
     at d. ()
     at d.[1](Object [1], UInt32  )
     at d.(Boolean [1])
     at d. ()
     at d.[1](Object[] [1], Type[]  , Type[] , Object[]  )
     at d.[1](Stream [1], String  , Object[] , Type[]  , Type[] 

, Object[]
)
at d.[1](Stream [1], String , Object[] )
at d.[1](Stream [1], String , Object[] )
at . (Int64 [1])
at Aspose.Slides.Presentation…ctor(LoadOptions loadOptions)
at Aspose.Slides.Presentation…ctor()
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.ImportShape() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 217
at QueBIT.ReportWORQ.OfficeJs.UI.Panes.PowerPoint.EditShapeView.b__0_18() in repos\ReportWORQ\QueBIT.ReportWORQ.OfficeJs\QueBIT.ReportWORQ.OfficeJs\UI\Panes\PowerPoint\EditShapeView.razor:line 158
at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)

  -----------
  
  Algorithm 'Aes' is not supported on this platform.
     at d.[1](Object [1])
     at d. (Object [1])
     at d. ()
     at d.[1](Object [1], UInt32  )
     at d.(Boolean [1])
     at d. ()
     at d.[1](Object[] [1], Type[]  , Type[] , Object[]  )
     at d.[1](Stream [1], String  , Object[] , Type[]  , Type[] 

, Object[]
)
at d.[1](Stream [1], String , Object[] )
at .[1](String [1])
at …ctor(String [1])
at …ctor()
at …cctor()

  -----------

@weissa,
Thank you for posting your requirements.

Unfortunately, we have not yet explored the possibility of supporting Aspose.Slides in WebAssembly.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESNET-44706

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

We would be very grateful if you would share details and instructions on how to reproduce the error you encountered.

@andrey.potapov,

Thank you for the quick response. I will open a case in our paid support portal with a formal request for this and will reference the case that you created.

-Andy

@weissa,
Thank you for using Aspose.Slides.