The problem happens because the required templates are not included by default during installation. To fix this, the .NET Framework project and item templates package needs to be installed through the Visual Studio Installer.
Steps to resolve:
Open Visual Studio 2022.
Go to File → New Project.
Scroll down and look for the message “Not finding what you are looking for?”.
Click on “Install more tools and features”.
This will open the Visual Studio Installer.
Select your current installation and click Modify.
Go to the Individual Components tab.
Search for the option called “.NET Framework project and item templates” and mark the checkbox.
Install the package.
After completing these steps, the option to create ASP.NET Web Application (.NET Framework) projects should be available.