小编BKa*_*rms的帖子

Web.config加密错误

有加密问题.我向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!
Run Code Online (Sandbox Code Playgroud)

然后我做了

C:\>aspnet_regiis -pa "NetFrameworkConfigurationKey" "administrator"
Adding ACL for access to the RSA Key container...
The RSA key container was not found.
Failed!
Run Code Online (Sandbox Code Playgroud)

其次是

C:\>aspnet_regiis -pc "NetFrameworkConfigurationKey" -exp
Creating RSA Key container...
The RSA key container could not be opened. …
Run Code Online (Sandbox Code Playgroud)

asp.net encryption aspnet-regiis.exe rsacryptoserviceprovider

6
推荐指数
2
解决办法
1万
查看次数