encrypting web.config failed error

后端 未结 9 1124
囚心锁ツ
囚心锁ツ 2021-02-18 13:18

I know that ppl have already asked questions regarding encrypting web.config.

im also trying to encrypt my test config file, but im getting this error.

aspnet_re

9条回答
  •  醉酒成梦
    2021-02-18 13:37

    for the command "aspnet_regiis -pef" the path of configuration file is the physical path (Not virtual) and also it is the path of directory/folder where web.config resides. So one should not include the name of file in path e.g.

    if your web.config path is at D:\MyConfiguration\web.config then while encrypting/decrypting you will use it as follow:

    encrypt:

    aspnet_regiis -pef [sectionName] "D:\MyConfiguration"

    decrypt:

    aspnet_regiis -pdf [sectionName] "D:\MyConfiguration"

提交回复
热议问题