How to set machineKey on Azure Website

前端 未结 3 1329
耶瑟儿~
耶瑟儿~ 2020-12-08 00:37

I\'m running an Azure Website. Whenever I deploy, everyone gets logged out because the machineKey changes.

I specified the machineKey in th

3条回答
  •  没有蜡笔的小新
    2020-12-08 01:22

    I had the same issue and in my case I was using the webdeploy to Azure wizard in VS13. I thought I was going crazy as I would set the machinekey in the web.config and then it would be changed on the deployed web.config to autogenerate. It is something in the webdeploy script/settings. My solution was to open the live azure site from within VS13 using the Server Explorer and then editing the web.config and saving changes. This preserved my settings with my supplied keys and all works fine.

提交回复
热议问题