It’s currently a bug in VS2019 – (Nov 4 ‘2019)
1.) Close your solution
2.) Delete applicationhost.config
in folder .vs
or delete the whole .vs
folder.
The .vs
folder is a hidden folder and is next to your solution file usually.
3.) Restart your solution again