Closed AjayKMehta closed 3 years ago
I have not seen this error. I suspect there may be some conflict between previous versions. Make sure you uninstall any previous versions of SecretStore and SecretManagement. Also try unregistering any extension vaults and re-register. Be sure and try with a new instance of PowerShell shell.
If you continue seeing this, examine the error record exception and innerexception that includes stack information.
$err = Get-Error
$err.Exception
$err.Exception.StackTrace
$err.Exception.InnerException
$err.Exception.InnerException.StackStrace
Otherwise, I would need a repro.
Or just run Get-Error
and it will dump all error information.
Another thing you can try is to reset the SecretStore. If you used an older version there may be a conflict (although I haven't seen any).
But beware as it erases all of your existing secrets.
Reset-SecretStore
Thanks, @PaulHigin. I initially had installed a preview version which I deleted.
Reset-SecretStore
resolved the issue.
I installed both
SecretStore
andSecretManagement
modules and tried to follow the examples in the blog post announcing the release. However, I get the exceptions shown below:PS Version info: