In the folder your solution is in delete the hidden folder .vs and try again. This will cause the file to be regenerated when you open the solution again.
Visual studio 2022 - The IIS Express applicationHost.config file contains invalid entries and must be corrected before you can open project
Shunmuga Priya Kandasamy (INFOSYS LIMITED)
131
Reputation points Microsoft Vendor
Hi Team,
The microsoft visual studio 2019 web and webapi projects when opened in visual studio 2022, getting the below error and cannot open it.Please guide me
The IIS Express applicationHost.config file contains invalid entries and must be corrected before you can open project