本地计算机上 msdeploy 命令行的 setAclUser 问题

setAclUser issue with msdeploy command line on local machine

我正在尝试通过命令行 msdeploy.exe 在本地 IIS 计算机 (IIS 8.0) 上部署 Web 应用程序。

当我从命令行 运行:

"%ProgramFiles%\IIS\Microsoft Web Deploy V3\msdeploy.exe" 
-verb:sync -source:package=Training.Mvc.Web.zip -dest:auto 
-setParam:name="IIS Web Application Name",
value="D:\Release\WebSites\Training" -verbose

我得到:

Error: A value for the 'setAclUser' setting must be specified when the 'setAcl'
provider is used with a physical path.
Error count: 1.

我曾尝试在 dest:auto 之后设置 setAclUser,但没有成功。

考虑到我的评论似乎起到了作用,我想我将其添加为答案,这样问题就可以标记为已回答。

当您部署到文件系统时,无法自动确定 aclUser,但是如果您将目标设置为 IIS 网站的名称(老实说,这个过程是为应用程序池设计的)将使用身份。