我正在尝试configurationIIS 7.5服务器以允许通过域用户帐户进行远程部署。
如果我创build具有pipe理员权限的本地帐户,或者使用具有pipe理员权限的域帐户,但是对于常规域帐户,则无法确定需要设置的内容。
到目前为止,我采取的步骤是:
但是,尝试使用webdeploy帐户凭据运行msdeploy时,收到“401未授权”消息,并在事件日志中查看以下内容:
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=DOMAIN\webdeploy
这是否意味着我的buildserver需要存储域pipe理员的凭据,以便将Web应用程序简单地推送到Web服务器?
您需要使用站点参数指定完整的Webpipe理服务URL。 例如,如果您以前使用:
msdeploy ... -dest:auto,wmsvc=target
那么你会用这个:
msdeploy ... -dest:auto,wmsvc=https://target:8172/msdeploy.axd?site=yourSiteName
请使用WebDeployment在要部署App的机器中的本地pipe理员组中添加用户。