我已经能够加密Web.config文件的其他部分,但是本节继续抛出一个错误说明,"配置部分' system.web / membership / providers'没找到。"
是否可以加密Web.config文件的这一部分?
Process proc = new Process();
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName = ASPNET_REGIIS;
proc.StartInfo.RedirectStandardError = true;
proc.StartInfo.RedirectStandardOutput = true;
... more code ...
答案 0 :(得分:1)
system.web/membership/providers
不是配置部分,它指的是System.Web.Configuration.MembershipSection部分中的元素。
您需要加密整个会员资格部分。