Quantcast
Channel: User Liyun Zhang - MSFT - Stack Overflow
Viewing all articles
Browse latest Browse all 445

Answer by Liyun Zhang - MSFT for NET8 MAUI set SecureStorage in Windows raises an error is empty

$
0
0

I have tested your code and reproduced the issue. And then I have check the source code about the SecureStorage.SetAsyc() on the windows.

This exception was caused by var buffer = await provider.ProtectAsync(bytes.AsBuffer()); . This should be alimit of the windows native api. And the null will also throw an exception about value can't be null.

So the string.Empty and null are not supported for the SecureStorage in the maui on the windows platform. You can use the space(" ") instead of it.


Viewing all articles
Browse latest Browse all 445

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>