Microsoft.AspNetCore.Antiforgery was not found

后端 未结 7 2058
终归单人心
终归单人心 2020-12-20 12:48

I\'m deploying a asp.net core 2.0 website to IIS 10.

I\'ve made sure that my app is using the correct configuration for ISS in the program.settings file.

<         


        
7条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-20 13:13

    Got this error after updating Microsoft.AspNetCore.All from v2.0.7 to v2.0.8 (latest at the time) and then publishing to a server that was running .NET Core Runtime v2.0.7 (latest at the time).

    Downgraded Microsoft.AspNetCore.All back down to v2.0.7, re-published, and everything works.

提交回复
热议问题