Microsoft.AspNetCore.Antiforgery was not found

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

    I fixed this issue on my inhouse windowsserver with this solution
    * go to netcore https://github.com/dotnet/core/tree/master/release-notes
    * go to the lastest version of the core runtime 2.?
    * download DotNetCore.2.0.6-WindowsHosting.exe in my case
    https://github.com/dotnet/core/blob/master/release-notes/download-archives/2.0.6-download.md#net-core-runtime-only-installation

    Install this on server and the error was solved for me. Hope this helps anyone.

提交回复
热议问题