使用加密ASPNET_REGIIS Web配置 [英] Encrypting Web Config using ASPNET_REGIIS
问题描述
我需要加密的网络配置的某些部分。读了一些教程后,我已经学会了使用工具ASPNET_REGIIS是要走的路。
这就是我此刻的努力:
从命令提示符
ASPNET_REGIIS -pef "identity" "D:\IIS\admin.mySite.com"
配置节'的System.Web \\身份没有被发现。
"The configuration section 'system.web\identity' was not found."
ASPNET_REGIIS -pef "system.web\identity" "D:\IIS\admin.mySite.com"
配置节'的System.Web \\身份没有被发现。
"The configuration section 'system.web\identity' was not found."
ASPNET_REGIIS -pef "system.web/identity" "D:\IIS\admin.mySite.com"
无法加密的节'的System.Web /身份'使用提供从供应商'RsaProtectedConfigurationProvider错误消息:对象已存在
"Failed to encrypt the section 'system.web/identity' using provider 'RsaProtectedConfigurationProvider' Error message from the provider: Object already exists."
要尝试,看看我得到什么好的,我尝试了以下内容:
ASPNET_REGIIS -pef "connectionStrings" "D:\IIS\admin.mySite.com"
无法加密的部分是connectionStrings'使用商从提供RsaProtectedConfigurationProvider错误消息:对象已存在
"Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider' Error message from the provider: Object already exists."
ASPNET_REGIIS -pef "connectionStrings" "D:\IIS\admin.mySite.com"
无法加密的部分是connectionStrings'使用商从提供RsaProtectedConfigurationProvider错误消息:对象已存在
"Failed to encrypt the section 'connectionStrings' using provider 'RsaProtectedConfigurationProvider' Error message from the provider: Object already exists."
ASPNET_REGIIS -pef "DoesNotExist" "D:\IIS\admin.mySite.com"
配置节DoesNotExist没有被发现。
"The configuration section 'DoesNotExist' was not found."
帮助!
推荐答案
我也有类似的问题,当我试图从提升权限的命令提示符下运行它(以管理员身份运行),解决了这个问题。
I had a similar problem and when I tried running it from a command prompt with elevated privileges ("run as administrator") solved the problem.
这篇关于使用加密ASPNET_REGIIS Web配置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!