我有一个2012R2持续集成服务器,其上安装了TeamCity和WebDeploy 3.5。我试图构建部署到其上使用IIS 8.5的另一个Server2012R2托管的网站(它也有安装Web部署3.5)和我收到此错误信息:msdeploy使用TeamCity构建 - ERROR_USER_NOT_ADMIN
Error Code: ERROR_USER_NOT_ADMIN
[13:12:26][Step 3/3] More Information: Connected to 'myiisserver' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'myiisserver'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
[13:12:26][Step 3/3] Error: The remote server returned an error: (401) Unauthorized.
你可以从看错误消息我可以连接到服务器,但它无法使用我指定的凭据进行身份验证。这是我使用的命令:
msdeploy -source:package='%PackageFile%' -dest:auto,computerName='http://%WebServer%/MSDeployAgentService',username="myiisserver\blibli",password="password",authtype="Basic",includeAcls='False' -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -setParamFile:"%ParamFile%" -setParam:"IIS Web Application Name"="%IisSiteName%" -enableRule:DoNotDelete
我使用的用户名是在两台机器上的管理员,我使用也指定正确的密码。
请问你能给这个家伙指点什么吗?我已经只是通过删除的authType =“基本”选项,该命令的丢了3个小时试图弄清楚这个问题...
非常感谢
机器是否连接到域?可能值得阅读 - http://blog.huilaaja.net/2013/10/06/web-deploy-error-user-not-admin-msdeployagentservice/ –
@Evolve Software Ltd - 他们没有连接到任何域 – miticoluis
@Evolve软件有限公司 - 我也尝试过你的消化和喜悦... – miticoluis