I was facing similar issues with 404 error not found while running ASP .Net core WEB Api.
Solution : I create new Project of ASO .Net core Web API with Target .Net Framework Version 8.0.
It Worked!