How do I deploy using MSDeploy in Team Build 2010 using the WMSVC service and NTLM authentication?

后端 未结 2 805
日久生厌
日久生厌 2021-01-31 09:26

I am trying to deploy using Team Build 2010 to a Windows Server 2008 R2 web server. My build server agent is setup to run under a Windows domain account. I have successfully gi

2条回答
  •  -上瘾入骨i
    2021-01-31 09:36

    If it is failing using NTLM then the team build service agent needs to be given permission to your site to allow non-administrators to connect to the site or application deployment server access. You can configure this under Management Service .

    You might want to also take a look at configuring the web deployment provider settings. Web Deploy Provider Settings

    If the wmsvc provider setting is specified, the default authentication type is Basic; otherwise, the default authentication type is NTLM.

    You could also encrypted your password using the encryptPassword parameter and configuring the setup on the hosted server if you are wanted to use basic authentication type.

    Hope this helps.

    This error code can surface because of a number of different reasons. It typically indicates an authentication or authorization problem, and can happen because of any of hte following reasons:

    If connecting using the Web Management Service:

    • Verify that the username and password are correct
    • Verify that the site exists
    • Verify that the user has IIS Manager Permissions to the site's scope

    If connecting using the Remote Agent Service:

    • Verify that the username and password are correct
    • Verify that the user account you specified is a member of the Administrators group on the remote computer. NOTE: Because of a bug in Web Deploy 2.0, the user must be either the built-in Administrator or a member of the Domain Administrators security group. Attempts to sync with any other user account, even if it is an administrator, will see this error code. Verify that the site exists

提交回复
热议问题