4,815 questions
You haven't shared which version of asp.net core mvc project you are using. Since ASP.NET Core MVC (.NET 6) you would not seen Startup.cs file, instead it has program.cs Let's have a look on following project architecture:
Note: You can have a look here in official sample and document.