Keyset does not exist ( exception from HRESULT : 0x80090016)
Scenario
Netwrix Data Classification displays the following error:
Error: There was an error while performing this operation.
Details:
Keyset does not exist ( exception from HRESULT : 0x80090016)
Solution
You can regenerate these machine keys without reinstalling IIS completely. To do that follow the steps below:
-
Rename the files listed below or move them to a different location from
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\iisConfigurationKey 6de9cb26d2b98c01ec4e9e8b34824aa2_GUIDNetFrameworkConfigurationKey d6d986f09a1ee04e24c949879fdb506c_GUIDiisWasKey 76944fb33636aeddb9590521c2e8815a_GUID
-
Backup
applicationhost.config, then delete everything inside the tags below inapplicationhost.config. Delete the contents within theconfigProtectedDataorproviderssections:
<configProtectedData>
<providers>
...
</providers>
</configProtectedData>
- Open a command prompt in admin mode and run the command below:
"%windir%\system32\inetsrv\iissetup.exe /install SharedLibraries"
- Keys should be recreated in the
C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys\folder. Now the IIS App pool user can be changed.
These steps, along with more information, can be found here as well: https://techcommunity.microsoft.com/t5/iis-support-blog/keyset-does-not-exist-exception-from-hresult-0x8009000d-or-or/ba-p/342955