使用msbuild进行部署时,我错过了什么?

我试图用msbuild / webdeploy与teamcity部署到IIS。 但是,我收到了ERROR_USER_UNAUTHORIZED错误消息,并将其指向iis.net上的此页面 。

我正在使用Webpipe理服务来做到这一点,我可以validation用户名和密码存在(我可以login到服务器的组合),该网站存在,用户具有IISpipe理员权限:

显示管理员权限的图像

那么我错过了什么?

编辑 :新的截图来回答@dirt:

在这里输入图像说明

就在你的屏幕截图中:“ 服务器configuration为只接受来自具有Windows凭据的帐户的连接 ”。

主级别IISpipe理器>pipe理服务>同时允许Windows和IIS凭据

参考: http : //www.iis.net/learn/manage/remote-administration/configuring-remote-administration-and-feature-delegation-in-iis-7

另外请确保您已经将用户添加到服务器级别的IISpipe理器用户和站点级别的IISpipe理器权限:

服务器级别: 服务器级别

网站级别: 网站级别

最后检查这个页面: http : //www.iis.net/learn/publish/troubleshooting-web-deploy/web-deploy-error-codes

ERROR_USER_UNAUTHORIZED Diagnosis - 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 thee following reasons: User does not exist User does not have IIS Manager access to site if connecting using Web Management Service Site does not exist Password is incorrect Resolution - 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 Resolution - 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: If you are not using the built-in administrator, create a new group called the "MSDepSvcUsers" group and add your new administrator to that group. Verify that the site exists