Cryptographyc errors while saving data into Azure-Table-Storage from Blazor.

Pablo Arthur-Rodger 1 Reputation point
2021-09-10T17:21:56.913+00:00

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?

Azure Table Storage
Azure Table Storage
An Azure service that stores structured NoSQL data in the cloud.
171 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,596 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AgaveJoe 28,536 Reputation points
    2021-09-10T19:09:48.423+00:00
    0 comments No comments

  2. 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:

    https://learn.microsoft.com/en-us/javascript/api/overview/azure/data-tables-readme?view=azure-node-latest

    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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.