Using Antiforgery in ASP.NET Core and got error - the antiforgery token could not be decrypted

后端 未结 3 1716
时光取名叫无心
时光取名叫无心 2021-02-02 16:41

My ASP.Net Core MVC application have added Antiforgery middleware like below:

startup.cs

services.AddMvc();
services.Ad         


        
3条回答
  •  借酒劲吻你
    2021-02-02 17:27

    What worked for me was using a new user account instead of NETWORK SERVICE as the error message included this:

    System.UnauthorizedAccessException: Access to the path 'C:\Windows\system32\config\systemprofile' is denied.

提交回复
热议问题