I was having the same issue. You can try this:
Open your Visual Studio Installer > Modify, then make sure the “ASP.NET and web development” workload is installed. Additionally, select/tick the box of the “Additional project templates” and “.NET Framework projects and item templates.” It worked for me after installing both, and it should resolve the issue for you as well if you're facing the same challenge.