[ad_1]
I’m trying to use Azure Key Vault in my C# app. The goal is to get an API token from my vault that has previously been entered manually. Here’s what I have :
using Azure.Identity;
using Azure.Security.KeyVault.Secrets;
// some code
secretClient = new SecretClient(new Uri(_jobSettings.KeyVaultUrl), new VisualStudioCredential());
// some other code
var token = secretClient.GetSecret(_jobSettings.SecretName).Value.Value
Everything worked fine, but today I get an error :
Azure.Identity.CredentialUnavailableException : 'Process "C:\Program Files\Microsoft Visual Studio\2022\
Community\Common7\IDE\CommonExtensions\Microsoft\Asal\TokenService\Microsoft.Asal.TokenService.exe" has
failed with unexpected error: TS003: Error, La connexion JSON-RPC avec le site distant a été interrompue
avant la fin de la requête..'
Internal Exception
InvalidOperationException : TS003: Error, La connexion JSON-RPC avec le site distant a été interrompue
avant la fin de la requête.
I have tried restarting Visual Studio, logging out then logging back in, logging out, restarting the computer and then logging back in. Nothing seems to work
Does anyone know what the problem is ?
[ad_2]