Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web deploy in Visual Studio 2010 - web management service is missing

I'm setting up a new server on Windows 2008 (x64) with IIS 7.5. I have installed Web Deploy 2.1 from the Web Platform Installer.

But the server is missing the Web Management Service, and as a result any web deploy fails with this message:

Error   1   Web deployment task failed.(Could not complete the request to remote agent URL 'https://url:8172/MsDeploy.axd?site=Default Web Site'.) This error indicates that you cannot connect to the server. Make sure the service URL is correct, firewall and network settings on this computer and on the server computer are configured properly, and the appropriate services have been started on the server. Error details: Unable to connect to the remote server No connection could be made because the target machine actively refused it  

I checked the services and found the necessary service is missing:

enter image description here

The Web Deployment agent service is installed (this is the IIS6 service), but not the Web Management service (the IIS7 deploy service).

How can I fix this? Does the Web Platform Installer not work for Web Deploy?

like image 553
JK. Avatar asked Jun 20 '11 03:06

JK.


People also ask

How do I publish a web service in Visual Studio 2010?

Start Visual Studio 2010 and load up the Contoso University C# solution. Click the Package/Publish Web tab. Choose the Configuration for the package. Packages are configuration specific and settings are per configuration, so you need to choose the configuration and configure the setting before creating a package.

How do I enable web management services?

In the center pane, under Management, double-click Management Service. In the center pane, select Enable remote connections. If the Web Management Service is already running, you'll need to stop it first. In the Actions pane, click Start to start the Web Management Service.

How do you check web Deploy is installed or not?

Is Web Deploy installed? You can verify web deploy is installed by going to the "Programs and Features" control panel and looking for "Microsoft Web Deploy 2.0" in the list of installed programs. If it is not there, you can install it via the Web Platform Installer by going to the "Products" tab.


1 Answers

Here is a current walkthrough as of April 2014:

  1. Install the Web Platform Installer on the server, which is available as a download from Microsoft.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-26-18.png

  2. Open Web Platform Installer, select "Products" at the top, and search for "Management Service". Click the "Add" button from the "IIS: Management Service" result , then click "Install".

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-34-25.png

  3. Once the Web Management Service has installed, find it in the Services console. Set its startup type to Automatic and start it.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-38-19.png

  4. Open IIS. With the server node selected, find "Management Service" in the Features View.

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-44-28.png

  5. Double click "Management Service" to open the feature. Stop it in the right panel if necessary to make edits. Check "Enable remote connections". When you are done making changes. Click "Apply", then click "Start".

    http://www.schiffhauer.com/wp-content/uploads/2014/04/2014-04-01_14-48-02.png

like image 193
Chris Schiffhauer Avatar answered Sep 28 '22 07:09

Chris Schiffhauer