IIS7 - 从 swf(闪存)读取外部 xml 文件时出现 401 未经授权的错误
当我尝试从 IIS7 中的 Flash SWF 文件读取 XML 文件时,收到 401 未经授权的错误。该文件位于文件系统中 SWF 文件的旁边。
当我通过浏览器浏览 XML 文件时,我得到以下信息:
HTTP 错误 401.3 - 您未经授权 无权查看此内容 目录或页面,因为 访问控制列表(ACL) 配置或加密设置 Web 服务器上的此资源。
我已授予 IIS_IUSRS 对该文件夹的完全权限,但仍然出现相同的错误。这是 IIS7 特有的吗?
谢谢。
I am getting a 401 unauthorized error when I try to read an XML file from a flash SWF file in IIS7. The file is located right next to the SWF file in the file system.
When I browse to the XML file through the browser, I get the following:
HTTP Error 401.3 - Unauthorized You do
not have permission to view this
directory or page because of the
access control list (ACL)
configuration or encryption settings
for this resource on the Web server.
I have given IIS_IUSRS full permission to that folder but still getting the same error. Is this something IIS7 specific?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我终于解决了这个问题,由于某种原因,有问题的 xml 文件启用了“加密内容以保护数据”。一旦我禁用该选项,它就开始正常工作。
要禁用“加密内容以保护数据”,请右键单击该文件 ->在常规/属性下,单击“高级”->在“压缩或加密属性”下,取消选择该选项(如果已选择)。
希望有人会觉得这有帮助。
谢谢。
I finally figured out the issue, for some reason the xml file in question had "encrypt contents to secure data" enabled. Once I disabled the option, it started working fine.
To disable "encrypt contents to secure data", right click the file -> under general/attributes, click "advanced" -> under "compress or encrypt attributes", deselect the option if it is already selected.
Hopefully somebody will find this helpful.
Thanks.
您能否检查 IIS_IUSRS 是否确实有权访问 XML 文件(而不仅仅是文件所在的文件夹)?
Can you check that IIS_IUSRS really has access to the XML file (not just the folder that the file is in)?