When I tried to set Physical Path Credentials in the Advanced Settings, I've got an error message as follows:
Internet Information Services (IIS) Manager
Bad Data. (Exception from HRESULT: 0x80090005)
And it prevents me to set specific user to access network shared folder.
Strangely, I have another server with same configuration, it works fine but this one raised the error. Any idea?
if you copied over the applicationhost.config, you need to export and import also accounts encrypted through WAS.
What i did (taken from here):
Export:
aspnet_regiis -px "iisConfigurationKey" "D:\iisConfigurationKey.xml" -pri
aspnet_regiis -px "iisWasKey" "D:\iisWasKey.xml" -pri
Import:
aspnet_regiis -pi "iisConfigurationKey" "D:\iisConfigurationKey.xml"
aspnet_regiis -pi "iisWasKey" "D:\iisWasKey.xml"
then copy again the applicationhost.config working again!
I have seen that problem when the encryption keys have been misconfigured, usually because an ApplicationHost.config was copied from a different machine (without importing the encryption keys) or the encryption keys have been override incorrectly.
The reason you get that error is because whenever a password is stored (such as a virtual directory user/pwd) it is stored using encryption and that will cause it to fail.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With