如何在 VS2010 中通过 Web 部署设置文件夹 ACL?
我有一个 Web 应用程序,我想使用“构建部署包”通过 Web 部署进行部署,
它有一个名为“Errors”的文件夹。这是该项目的一部分。 Web 部署添加了它,但我如何指定我希望应用程序对此文件夹具有写入权限?
我是否必须每次都手动编辑源清单,或者我可以将其设置在某个地方以使包自动执行此操作吗?
I have a web application I want to deploy via Web Deploy, using "Build Deployment Package"
It has a folder called "Errors". This is part of the project. Web Deploy adds it, but how do I specify that i want the application to have Write permissions on this folder?
Do I have to manually edit the source manifest each time, or can I set it somewhere to get the package to do it automagically?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我发现这个关于 Web 部署的帖子。该帖子本身与您的主题无关,但其中有一条评论(搜索“.csproj”;评论应为黄色),显示如何禁用 Web 部署以在清单中创建 set-acl-s。也许你可以从那里开始。
I found this post on Web Deployment. The post in itself is not on your topic, but there's a comment in there (search for '.csproj'; comment should be yellow) that shows how to disable Web Deploy to make set-acl-s in your manifest. Maybe you can go from there.
不太确定这是否有帮助,但有一个名为 Set-Acl。然后可以将其用于Set-Acl 提供程序。作为旁注, 这篇博文似乎正在处理同样的问题。
Not too sure if this will help, but there is a command called Set-Acl. This can then be used to Set-Acl provider. As a side note, this blog post seems to be dealing with the same issue.