Windows error 0x8009001E, -2146893794

Detailed Error Information

NTE_PROV_DLL_NOT_FOUND[1]

MessageProvider DLL could not be found.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode9 (0x009)
NameFACILITY_SSPI[2][1]
DescriptionThe source of the error code is the Security API layer.[2][1]
Error Code30 (0x001e)

Questions

1vote
1answer

Opening Encryption Key Works in Powershell Not in C#

I am opening an encryption key stored in an HSM. I have the HSM's client library installed on my machine. If I run the following Windows Powershell snippet: ##Open an existing Key $keyName = 'foo' $providername = 'SafeNetProtectApp Key Storage Provider' $provider = New-Object 'System.Security.Cryptography.CngProvider' -ArgumentList $providername $key = [System.Security.Cryptography.CngKey]::Open($keyName, [...] read more
c#
powershell
cng

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0