Unauthorized access error to html pages in IIS 7.0

后端 未结 5 806
广开言路
广开言路 2021-02-06 03:02

I am using VSTS 2008 + C# + .Net 3.5 + IIS 7.0. I have created a new web site and put an html file into the directory. And when I use browse function in IIS manager to browse th

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 03:37

    In IIS 8.5 (fresh install) I had my application pool run as a custom identity and the files stored in a folder outside /inetpub/wwwroot. The identity had all the proper file privileges, but still I got an acl error.

    After some struggles I found out that in IIS manager->My Site->Authentication->Anonymous Authentication->Edit the identity used for anonymous authentication was set to a specific user by default (IUSR). Setting it to use the application pool identity fixed it for me!

提交回复
热议问题