Msbuild 尽管启动了web部署服务,但msdeploy无法到达目标
正如您从标题中看到的,我在部署到远程IIS时遇到了一些问题。 以下是我迄今为止所做的工作:Msbuild 尽管启动了web部署服务,但msdeploy无法到达目标,msbuild,msdeploy,webdeploy,msbuild-wpp,Msbuild,Msdeploy,Webdeploy,Msbuild Wpp,正如您从标题中看到的,我在部署到远程IIS时遇到了一些问题。 以下是我迄今为止所做的工作: 我已经在Windows Server 2008上设置了一个运行IIS7的虚拟机 我已桥接VMs网络适配器 我已经安装并启动了“Web部署代理服务”和“Web管理服务” 我还创建了一个新的IIS管理员用户,并授予他访问相关网站的权限 现在,当我这样做时,部署本身可以工作,例如: msbuild D:\Path\ToProject\DeployVariation01\DeployVariation
- 我已经在Windows Server 2008上设置了一个运行IIS7的虚拟机
- 我已桥接VMs网络适配器
- 我已经安装并启动了“Web部署代理服务”和“Web管理服务”
- 我还创建了一个新的IIS管理员用户,并授予他访问相关网站的权限
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>
但这让我感到困惑,因为我实际上已经通过WebPlatformInstaller安装了Web部署,并且Web管理服务正在运行。
我还尝试从我的主机ping我的虚拟机,它正在通过。
出于测试目的,我也完全关闭了虚拟机中的防火墙
但我还是收到了同样的错误信息
谁能指引我走向正确的方向?我缺少什么?事实证明,我这里的问题与我的服务器配置、服务帐户或远程机器上的任何其他帐户配置无关 这些服务确实发挥了应有的作用 看来我要么是把脚本设置错了,要么就是工作不正常。 当我查看脚本的执行时,我看到在最后创建了这个命令并尝试执行:
"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
但是,要使此命令正常工作,ComputerName参数需要包括目标服务的完整地址,并且不能包括IIS站点下的应用程序名称,因此需要对此进行一些修改
"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
然后做了部署到我的远程机器的实际工作。
我还发布了更详细的信息,因为我的问题现在从服务器配置问题变成了脚本配置问题;) 你能浏览msdeploywebservice吗?你是说通过“”?老实说,我不确定:)只是尝试在浏览器中访问它,它说该站点上的证书有问题。然后我点击继续加载站点,然后我收到404错误,hummn。
"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
"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