加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – Web.config加密错误

发布时间:2020-12-15 20:53:57 所属栏目:asp.Net 来源:网络整理
导读:有加密问题.我向RSA文件夹的所有用户授予了完全权限.我做到了 C:aspnet_regiis -pe "appSettings" -location "web.config" -prov "RsaProtectedConfigurationProvider"Encrypting configuration section...An error occurred executing the configuration s
有加密问题.我向RSA文件夹的所有用户授予了完全权限.我做到了
C:&;aspnet_regiis -pe "appSettings" -location "web.config" -prov "RsaProtectedCo
nfigurationProvider"
Encrypting configuration section...
An error occurred executing the configuration section handler for appSettings.

Failed to encrypt the section 'appSettings' using provider 'RsaProtectedConfigur
ationProvider'. Error message from the provider: Object already exists.

Failed!

然后我做了

C:&;aspnet_regiis -pa "NetFrameworkConfigurationKey" "administrator"
Adding ACL for access to the RSA Key container...
The RSA key container was not found.
Failed!

其次是

C:&;aspnet_regiis -pc "NetFrameworkConfigurationKey" -exp
Creating RSA Key container...
The RSA key container could not be opened.
Failed!

没有什么对我有用.

有人可以帮忙吗?

谢谢

解决方法

这次失败让我遇到了同样的问题:

aspnet_regiis -pa “NetFrameworkConfigurationKey” “{Domain}{Username}”

上面一行返回“未找到RSA密钥容器”.

要解决此问题,我必须以管理员身份运行命令提示符(打开开始>附件>然后右键单击命令提示符并选择以管理员身份运行…).即使我的帐户是管理员帐户,我也必须这样做.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读