I am trying to upgrade my web app from ASP.NET Core 2.2 to 3.1 (the .net core 2.2 web app has no compile error or runtime error). But got the following runtime exception (The co