Issue Description:
Visual Casino can throw an exception when trying to retrieve the license for the application.
The profile for the user is a temporary profile.
Exception Class: CryptographicException
Running Since: 2025-03-18 15:27:53
Thrown by Method: System.Security.Cryptography.SafeProvHandle CreateProvHandle(System.Security.Cryptography.CspParameters, Boolean)
Source Project: mscorlib
Stack Trace:
at System.Security.Cryptography.Utils.CreateProvHandle(CspParameters parameters, Boolean randomKeyContainer)
at System.Security.Cryptography.Utils.GetKeyPairHelper(CspAlgorithmType keyType, CspParameters parameters, Boolean randomKeyContainer, Int32 dwKeySize, SafeProvHandle& safeProvHandle, SafeKeyHandle& safeKeyHandle)
at System.Security.Cryptography.RSACryptoServiceProvider.GetKeyPair() at System.Security.Cryptography.RSACryptoServiceProvider.ExportParameters(Boolean includePrivateParameters)
at System.Security.Cryptography.RSA.ToXmlString(Boolean includePrivateParameters) at BiometricaUtils.Cryptography.EncryptHelper.GetNewKeys(Boolean includePrivate, Boolean includePublic)
....
Cause:
This error occurs when the windows user profile is a temporary profile. It will often be accompanied by a notification in the Windows Notification Center similar to the following:
Resolution:
Windows 10+/Windows Server 2016+
The user should log out and log back in. If the issue still occurs, check that there is not a misconfiguration in Active Directory.
Windows 8/Windows Server 2012+
Upgrade to a supported version of windows, this may be related to a known windows bug; see: https://support.microsoft.com/en-us/topic/-the-profile-for-the-user-is-a-temporary-profile-error-when-you-install-a-msi-package-in-windows-61aa931b-a15c-0e96-0e75-bc57ef42eed7