IsolateApps causes Decryption key specified has invalid hex characters

前端 未结 3 1045
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 12:20

I working on a MVC 4 site which has uses Authentication. The site requires that I specify the Machine Key values. I did this via the IIS interface having deselected the \"au

3条回答
  •  借酒劲吻你
    2020-12-13 12:46

    The IsolateApps modifier causes ASP.NET to generate a unique key for each application on your server. This is only applicable if you are getting ASP.NET to auto-generate keys at runtime.

    If you are not getting ASP.NET to auto-generate keys, and are instead specifying the keys using decryptionKey="{hex-key value}", then the way to get ASP.NET to use a different key for each application is to simply specify a different key in each application's Web.config.

    The IIS config GUI allows you to create a Web.config with an explicit key together with the IsolateApps modifier, which is invalid, and in my opinion is a bug in the config GUI.

提交回复
热议问题