msbuild - msdeploy cannot reach destination despite having web deployment service started -


as can see title experiencing trouble deploying remote iis. here have done far:

  • i have set virtual machine running iis7 on windows server 2008.
  • i have bridged vms network adapter.
  • i have installed , started "web deployment agent service" "web management service".

"web deployment agent service" , "web management service" started , running

  • i created new iis manager user , granted him access website in question.

both local administrator , iisman have access site want deploy to

now deploying works when example:

msbuild d:\path\toproject\deployvariation01\deployvariation01.csproj         /p:configuration=debug;         platform=anycpu;         deployonbuild=true;         deploytarget=msdeploypublish;         msdeployserviceurl="some.ip.-.address";         deployiisapppath="deployappdebug/deploythis";         msdeploypublishmethod=wmsvc;         allowuntrustedcertificate=true;         username=administrator;         password=<thinkofapassword> 

then application deployed , can call browser.

update: works command, should answer james woolfenden's question of whether have access msdeploy webservice:

msbuild d:\path\toproject\deployvariation01\deployvariation01.csproj         /p:configuration=debug;         platform=anycpu;         deployonbuild=true;         deploytarget=msdeploypublish;         msdeployserviceurl="https://some.ip.-.address:8172/msdeploy.axd;         deployiisapppath="deployappdebug/deploythis";         msdeploypublishmethod=wmsvc;         allowuntrustedcertificate=true;         username=administrator;         password=<thinkofapassword> 

but, want use packageweb-approach (also described here).
create webdeploy-package visual studio 2012, want deploy. deploying seems no problem, too, since run on local computer.

both, local iis 1 in vm have same website-structure, should have change "computer name", "username" , "password" when calling publish-interactive.ps1-script in order work, when keep getting error message

could not connect remote computer ("some.ip.-.address") on remote computer, make sure web deploy installed , required process ("web management service") started.  learn more at: http://go.microsoft.com/fwlink/?linkid=221672#error_destination_not_reachable.) 

but confuses me, because have web deploy installed via webplatforminstaller , web management service running. tried ping vm host machine , getting through. testing purposes switched off firewall in vm entirely, too.

all firewall profiles switched off

but still same error message.

can guide me towards right direction? missing?

it turned out, problem having here has nothing server configuration, service account or other account configuration on remote machine whatsoever.

the services work should.

it seems either set script in wrong way or not working properly. looked execution of script saw @ end command created , tried execute:

"c:\program files\iis\microsoft web deploy v3\msdeploy.exe"     -verb:sync -source:archivedir="c:\users\somename\appdata\local\temp\deploydbvariantion00_zip"      -dest:auto,includeacls='false',computername='some.ip-.address?site=deployapp/deploythis',username=someothername,password=haveanotherguess,authtype='basic'     -disablelink:apppoolextension     -disablelink:contentextension     -disablelink:certificateextension     -setparamfile:"c:\users\somename\appdata\local\temp\deploydbvariantion00_zip\setparameters.xml"      -skip:objectname=dirpath,absolutepath="_deploy_"     -skip:objectname=filepath,absolutepath=web\..*\.config     -skip:objectname=dirpath,absolutepath=_package     -skip:objectname=filepath,absolutepath=.*\.wpp\.targets$     -allowuntrusted 

but command work computername-parameter needs include full address target service , application name under iis site must not included, modifying bit this

"c:\program files\iis\microsoft web deploy v3\msdeploy.exe"     -verb:sync     -source:archivedir="c:\users\somename\appdata\local\temp\deploydbvariantion00_zip"      -dest:auto,includeacls='false',computername='https://some.ip.-.address:8172/msdeploy.axd?site=deployapp',username=someothername,password=haveanotherguess,authtype='basic'     -disablelink:apppoolextension     -disablelink:contentextension     -disablelink:certificateextension     -setparamfile:"c:\users\somename\appdata\local\temp\deploydbvariantion00_zip\setparameters.xml"     -skip:objectname=dirpath,absolutepath="_deploy_"     -skip:objectname=filepath,absolutepath=web\..*\.config     -skip:objectname=dirpath,absolutepath=_package     -skip:objectname=filepath,absolutepath=.*\.wpp\.targets$     -allowuntrusted 

then did actual job of deploying remote machine. posted in more detail here, because problem went server configuration problem script configuration problem ;)


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -