Chr*_*nes 8 deployment iis-7 msdeploy visual-studio webdeploy
我在IIS网站下面有一个子应用程序,我可以使用Visual Studio中的发布向导来部署它没问题.
但是,我正在从构建服务器自动部署,所以我更喜欢直接使用msdeploy.exe.
我可以部署主网站,但尝试部署子应用程序拒绝工作.
这工作(www.mymainwebsite.co.uk是IIS网站):
msdeploy.exe -source:package ='www.mymainwebsite.co.uk\obj\Test\Package\www.mymainwebsite.co.uk.zip' -dest:auto,computerName ='https:// testweb1:8172/MsDeploy .axd?site = www.mymainwebsite.co.uk',userName ='xxx',password ='xxx',authtype ='Basic',includeAcls ='False'-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension - disableLink:CertificateExtension -setParamFile:"www.mymainwebsite.co.uk\obj\Test\Package\www.mymainwebsite.co.uk.SetParameters.xml"-allowUntrustedInfo
这不是(SubApplication是应用程序路径):
msdeploy.exe -source:package ='SubApplication\obj\Test\Package\SubApplication.zip' -dest:auto,computerName ='https:// testweb1:8172/MsDeploy.axd?site = www.mymainwebsite.co.uk/SubApplication ',userName ='xxx',password ='xxx',authtype ='Basic',includeAcls ='False'-verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"SubApplication\obj\Test\Package\SubApplication.SetParameters.xml"-allowUntrustedInfo
错误是:
Error Code: ERROR_USER_UNAUTHORIZED
More Information: Connected to the remote computer ("testweb1") using the Web Management Service, but could not authorize. Make sure that you are using the correct user name and password, that the site you are connecting to exists, and that the credentials represent a user who has permissions to access the site. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_UNAUTHORIZED.
Error: The remote server returned an error: (401) Unauthorized.
Run Code Online (Sandbox Code Playgroud)
正如我所说,这可以从Visual Studio发布向导,将站点/应用程序属性设置为www.mymainwebsite.co.uk/SubApplication,因此我知道它不是服务器上的权限问题.
我错过了msdeploy参数中的内容吗?
我在命令行上使用以下命令来设置Web应用程序:
-setParam:name="IIS Web Application Name",value="www.mymainwebsite.co.uk/SubApplication"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6147 次 |
最近记录: |