I had a project .net core 2.2 and I switch to 3.1 after that when call a api I have Exception
public override void OnActionExecuted(Microsoft.AspNetCore.Mvc.Filters.ActionExecutedContext context)
{
var response = context.Result as ObjectResult;
if (response?.Value == null)
return;
}
context.Result
is always null and shows me below exception:
"Could not load type 'Microsoft.AspNetCore.Mvc.Formatters.JsonSerializerSettingsProvider' from assembly 'Microsoft.AspNetCore.Mvc.Formatters.Json, Version=3.1.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'.":"Microsoft.AspNetCore.Mvc.Formatters.JsonSerializerSettingsProvider"
Please guide me.