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()-----------