I'm experiencing problems trying to deploy an ASP.NET MVC .NET 6 app using Web Deploy

Rod At Work 866 Reputation points
2022-11-16T21:36:13.737+00:00

I’m working on a new web app. I’ve written the app using .NET 6 (their long-term support using .NET Core) which I’m trying to deploy to website a website on server one of our servers. I’ve already set up a website within IIS 10 on the server. I’ve created the application pool for it. I found that Web Deploy wasn’t installed, so I installed Web Deploy 3.6 onto that server. When I try to deploy from Visual Studio 2022 to that website on that server, I get this error message:

Could not connect to the remote computer. On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started. Learn more at: https://go.microsoft.com/fwlink/?LinkId=221672#ERROR_DESTINATION_NOT_REACHABLE.
Unable to connect to the remote server
No connection could be made because the target machine actively refused it
Publish failed to deploy.

In researching this I’ve not found anything that helped. In fact, some search results were ludicrous. Some more helpful discussed configuring Manager permissions in IIS.

I’ve been following this Microsoft webpage to help me configure the site: https://learn.microsoft.com/en-us/iis/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later
I was in IIS on the server trying to configure those Manager Permissions https://learn.microsoft.com/en-us/iis/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later#using-the-iis-manager-to-configure-web-deploy-for-a-non-administrator however, the Management portion related to PHDPharmacyDev in IIS on DOHR2SIMPHARW01 only has Configuration Editor; no IIS Manager Permissions nor Web Platform.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,705 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,514 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.