Given any application pool on my local development machine, when I try to set the identity of it to a custom user (through the gui or otherwise), upon committing the changes I receive the error message:
An internal error occurred. (Exception from HRESULT: 0x8007054F)
And the change is not saved.
I've tried setting the identity to different users (including myself), with the same result.
Logging in as a different user to my box and going through the same steps does not solve the issue either.
Setting the identity to a built-in account works as expected.
I was able to resolve the issue by taking the following steps:
Uninstall IIS using the Turn windows features on or off dialog. (I'm uncertain if this is was necessary, but it seemed like a reasonable step. It is important to note I was unable to reinstall IIS at this point.)
Physically delete the following files from the MachineKeys directory on my PC (%ProgramData%\Microsoft\Crypto\RSA\MachineKeys on my Win7 installation):
Corresponding to iisConfigurationKey, NetFrameworkConfigurationKey, and iisWasKey respectively.
Solution was found here: https://forums.iis.net/p/1148509/1865753.aspx
User contributions licensed under CC BY-SA 3.0