Asp.net

將 machineKey 添加到 machine.config

  • April 26, 2012

我想將 machineKey 添加到我的 machine.config 中,因為我正在使用 Web 農場場景中的 web.config 連接字元串的程式加密。

我的問題是,我應該將 machineKey 放在 machine.config 文件中的什麼位置?那裡沒有我可以替換的,我懷疑它是自動生成的,那麼它應該放在哪裡?

把它放在下面<system.web>

如果您需要生成密鑰,請使用此 SO 文章中顯示的過程

引用自:https://stackoverflow.com/questions/10337634