Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MSDeploy WMSVC Not working

I have a build/test server which is currently running Jenkins for my continuous integration and it also is acting as my test server where code will be deployed to once built (i hope to rectify this and seperate these at a later date when budget allows)

I have a .NET web solution (nothing complex just Umbraco essentially) that i have in SVN and Jenkins is now building correctly. I now want to deploy it onto the same server using MSDeploy. After the build completes the package is generated but the deploy fails with the error

ERROR_DESTINATION_NOT_REACHABLE: Web deployment task failed. (Could not connect to the remote computer ("xxxxx.xxxxxxx.xxx.xxxx"). On the remote computer, make sure that Web Deploy is installed and that the required process ("Web Management Service") is started

Here is my msbuild parameters that Jenkins uses

/P:Configuration=Release 
/P:DeployOnBuild=True 
/P:MSDeployPublishMethod=WMSVC 
/P:DeployTarget=MSDeployPublish 
/P:PublishProfile=GetSomePixels 
/P:MsDeployServiceUrl=https://build.######## 
/P:AllowUntrustedCertificate=True 
/P:CreatePackageOnPublish=True 
/P:UserName=####### 
/P:Password=########

I've checked the server and the Web Management Service is running and is starting up manually

I've also gone into IIS 8 manager (server 2012) and checked the "Allow Remote Connections" box under "Management Service". Restarted IIS and the WMSVC and still not working.

If i go to https://myserver.co.uk:8172/MsDeploy.axd in a browser it resolves (gives you the warning about an untrusted cert) and then displays a blank page.

Anyone got any ideas as to what i can do? I thought that it may be firewall related and even though it had added an exception to windows firewall for 8172 i have turned the entire firewall off to completely rulle that out and still no luck.

Have run this on the server to check its listening on the correct port

C:\Users\Administrator>netstat -a | findstr 8172 TCP 0.0.0.0:8172 GSP-BUILD:0 LISTENING TCP [::]:8172 GSP-BUILD:0 LISTENING

like image 940
Ian Davies Avatar asked May 23 '13 07:05

Ian Davies


People also ask

How do I know if MSDeploy is 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. It is listed as "Web Deployment Tool 2.1".

Can't connect to remote server web Deploy?

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.

Could not connect to the remote computer make sure that the remote computer name is correct?

If you cannot connect using the remote computer name, try using the IP address instead. You can use ipconfig in a command line on the remote computer to get the IPv4 address. If you are using a HOSTS file, verify that it is configured correctly.


1 Answers

Ok i've resolved this. It appears you have to activate the web management service first and then install web deploy and i'd done it the other way round. I uninstalled WebDeploy and re-installed it, restarted the server and its working

like image 55
Ian Davies Avatar answered Oct 24 '22 05:10

Ian Davies