Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IIS Manager Bad Data. 0x80090005

Tags:

security

iis-7

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?

like image 222
San Avatar asked Feb 24 '10 15:02

San


2 Answers

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!

like image 139
Mathieu Chateau Avatar answered Nov 12 '22 22:11

Mathieu Chateau


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.

like image 39
Carlos Aguilar Mares Avatar answered Nov 12 '22 22:11

Carlos Aguilar Mares