【问题标题】:WCF Encrypting Connection Strings with aspnet_regiisWCF 使用 aspnet_regiis 加密连接字符串
【发布时间】:2009-08-19 13:14:00
【问题描述】:

我有一个 WCF 服务与一个 Web 应用程序通信。在 web.config 文件中,我想加密连接字符串部分。

我正在使用 aspnet_regiis -pe "connectionStrings" -app "/WebAppFolder" 对于 web 应用程序 web.config,这工作正常。

但是,当我对 WCF 服务执行相同操作时,当我尝试通过 Web 应用程序连接到它时,会出现内部服务器错误。

【问题讨论】:

    标签: asp.net wcf security


    【解决方案1】:

    问题是我需要让我的机器访问配置密钥

    aspnet_regiis -pa "NetFrameworkConfigurationKey" "MYMACHINE\ASPNET"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-05
      • 2016-02-10
      • 1970-01-01
      • 1970-01-01
      • 2012-10-13
      相关资源
      最近更新 更多