Microsoft.AspNetCore.Antiforgery was not found

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

    If you publish the app as a self-contained ASP.NET Core 2.2 apps as per the linked screenshot (I don't have enough rep for inline image), it will fix this issue.

    Self contained: Screenshot

    This can be set when editing your publish settings.

提交回复
热议问题