我正在尝试加密.Net应用程序的Web.Config中的"system.web.membership"元素,以保护Active Directory的用户名和密码.我正在使用aspnet_regiis命令进行加密,并为"pe"选项的值尝试了几个不同的字符串但没有成功.我已成功加密web.config上的"connectionstrings"元素.
CMD
C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pe "connectionStrings" -site MySite -app /MyApp Encrypting configuration section... Succeeded! C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pe "membership" -site MySite -app /MyApp Encrypting configuration section... The configuration section 'membership' was not found. Failed! C:\Windows\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -pe "system.web.membership" -site MySite -app /MyApp Encrypting configuration section... The configuration section 'system.web.membership' was not found. Failed!
Web.Config中
... ... ......
什么给出了什么?我错过了什么?
配置部分用" system.web/membership
" 标识,而不是" membership
"或" system.web.membership
".