简体   繁体   中英

IIS7 - 401 Unauthorized error while reading external xml file from a swf (flash)

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.

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文件(而不仅仅是该文件所在的文件夹)?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM