Microsoft.AspNetCore.Antiforgery was not found

后端 未结 7 2012
终归单人心
终归单人心 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:28

    I was able to fix this issue by updating the .net core runtime on the server to v2.0.3.

    This issue occurs if

    1. You have an existing server running v2.0.0 of the .net core runtime.
    2. You create an app targeting v2.0.3 of the SDK
    3. You publish the v2.0.3 app to a server running v2.0.0

    The issue can be resolved by installing v2.0.3 of the runtime on the server. You can download the runtime from the microsoft site here https://www.microsoft.com/net/download/windows

提交回复
热议问题