【问题标题】:Failure encrypting web.config using RSA and file path使用 RSA 和文件路径加密 web.config 失败
【发布时间】:2013-02-09 19:16:00
【问题描述】:

我正在使用以下命令来加密文件

aspnet_regiis -pef "connectionStrings" "d:\MyPath\web.config"

我得到以下答案

The configuration for physical path 'd:\MyPath\web.config' 
cannot be opened.
Failed!

文件不是只读模式,我以管理员权限运行 cmd。

有什么想法吗?

【问题讨论】:

  • C: vs. D: 差异是故意的吗?

标签: asp.net iis encryption rsa


【解决方案1】:

aspnet_regiis -pefwebApplicationDirectory为参数,不应包含web.config的文件名;

aspnet_regiis -pef "connectionStrings" "D:\MyPath"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-11-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多