我试图远程部署应用程序时,使用不是本地管理员在目标服务器上的Windows用户从MsDeploy使用NTLM身份验证未经授权的错误。我在目标框上的管理服务委派中设置了规则,并检查了所有提供者。在此规则下,我添加了2个具有允许权限的用户('*',以及正在进行远程部署的Windows用户)。另外,我在我正在尝试部署的网站上授予了Windows用户权限。如果我让Windows用户成为目标框上的本地管理员并设置'允许管理员绕过规则',则部署工作正常。如果Windows用户是不是本地管理员,我得到了以下错误:WebDeploy(401)未经授权的错误
Web deployment task failed.(Remote agent (URL http://xxxxxxxx/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer.) Make sure the site name, user name, and password are correct. If the issue is not resolved, please contact your local or server administrator. Error details: Remote agent (URL http://xxxxx/MSDEPLOYAGENTSERVICE) could not be contacted. Make sure the remote agent service is installed and started on the target computer. An unsupported response was received. The response header 'MSDeploy.Response' was 'V1' but 'v1' was expected. The remote server returned an error: (401) Unauthorized. in Microsoft.Web.Publishing.targets(3588, 5)
这里的确切问题 – 2011-01-27 18:06:17
对其他人的注意:如果你的错误信息不包括'v1'错误,那么这是一个不同的原因。在我的情况下,这是一个与UAC有关的事情,正如这里描述和修复的那样:http://networkprogramming.wordpress.com/2010/10/29/401-not-authorized-for-msdeploy%E2%80%8F- msdeployagentservice/ – 2011-09-12 20:53:55
修复管理共享的注册表黑客也修复了这个问题,并且似乎是UAC令牌问题。使用此修复程序: https://support.microsoft.com/en-gb/kb/947232 – 2016-10-11 19:04:14