iis7 错误提示 0x80090005
There was an error while performing this operation.
Details: Bad Data. (Exception from HRESULT: 0x80090005)
详细信息:错误的数据。(异常来自HRESULT:0x80090005)
or the encryption it uses machine specific keys in the iisConfiguration and iisWasKey containers. When the applicationHost.config is moved to a different server IIS can no longer decrypt the settings.
To get this working you can export and import the keys from the original server.
Export using the following commands
IIS使用了加密密钥,当applicationHost.config移到不同的服务器时,由于密钥不同,IIS就没办法再解密了,解决的办法是从原始服务器上备份密钥,再在这台服务器上还原,备份方法:
aspnet_regiis(这个程序一般在.NET的安装目录下,自己用DIR命令查看一下)
aspnet_regiis -px "iisConfigurationKey" "D:\iisConfigurationKey.xml" -pri
aspnet_regiis -px "iisWasKey" "D:\iisWasKey.xml" -pri
接着把两个文件拷到B服务器上,再导入,导入的命令参数为:
aspnet_regiis -pi "iisConfigurationKey" "D:\iisConfigurationKey.xml"
aspnet_regiis -pi "iisWasKey" "D:\iisWasKey.xml"
一般就可以合用了!