I'm running Visual Studio 2019 16.9.3. For several years I've been able to go to the Build menu and select Publish to deploy my ASP.NET application to an IIS Server running Windows Server 2019. Now it either gives me an error that the web publishing extension is not installed, or it brings me to a dialog box to configure the publish settings. I've tried using the Web Server (IIS) option to configure the publish options and when I click Finish it spins for a split second and then comes back to the wizard where I filled in the settings. I've also tried Import Profile, but after I browse and select the .PublishSettings file and click Finish it says 'Waiting...' for a split second and the dialog box doesn't close.
I've tried removing the ASP.NET and web development workload and then adding it back in, but that didn't help.
What do I need to do to fix the web publishing to IIS?