【发布时间】:2017-02-02 10:58:03
【问题描述】:
尝试远程部署时出现 401 错误。 来自服务器的事件日志 -
The following information was included with the event:
IISWMSVC_AUTHORIZATION_SERVER_NOT_ALLOWED
Only Windows Administrators are allowed to connect using a server connection. Other users should use the 'Connect To Site or Application' task to be able to connect.
Process:WMSvc
User=deployer
我正在使用以下脚本进行部署
msdeploy.exe -verb:sync -source:package=c:\Jenkins\workspace\Myproject.zip - dest:auto,wmsvc=[server_ip],usernverame=iis_deployer,password=iis_deployer,authType=basic -setparam:name='IIS Web Application Name',value='Default Web Site\myproject\master' -allowUntrusted
如果我使用管理员用户,它工作正常。但对于非管理员和 IIS 用户,它会失败。
我已尝试按照本文设置权限和委托规则- https://blogs.iis.net/krolson/using-iis-manager-accounts-for-web-deployment-tool-msdeploy-delegation
似乎没有任何效果。
【问题讨论】: