System.Security.Cryptography APIs not supported on Blazor WebAssembly
Cryptographyc errors while saving data into Azure-Table-Storage from Blazor.
I am developing a BLAZOR application (Core 5.0), but this errors keeps coming out!!! 'System.Security.Cryptography.Algorithms is not supported on this platform.' . I am just trying to write in Azure Table Storage. I believe this is something very simple, BLAZOR writing into Azure Tables. but it seems like a impossible task.
First I have use the COSMOS DB API (latest version), and I got the error 'System.Security.Cryptography.Algorithms is not supported on this platform.', I thought maybe going to the Azure.Data.Table library for .NET (latest version) will solve my problem but I am still getting the same error? 'System.Security.Cryptography.Algorithms is not supported on this platform.'
I believe I am doing something wrong because this should have been possible for years...... Can you please, please, please, please, let me know what I am doing wrong?
2 answers
Sort by: Most helpful
-
-
Bruce (SqlWork.com) 66,706 Reputation points
2021-09-10T19:39:20.483+00:00 for blazor client (wasm), you will want to use the javascript libraries:
azure table store:
cosmos db:
https://learn.microsoft.com/en-us/javascript/api/overview/azure/cosmos-readme?view=azure-node-latest
you can use blazor interop to call the javascript libraries. you might want to create a blazor wrapper.
note: blazor (or any wasm) can not really make network calls, it must call javascript to do the call. The Blazor runtime just makes interop calls to the javascript, so it is not a the same as the actual .net core network library