Granting access to IIS 7.5 ApplicationPoolIdentity [duplicate]

无人久伴 提交于 2019-11-28 18:30:58

问题


This question already has an answer here:

  • IIS7 Permissions Overview - ApplicationPoolIdentity 8 answers

When I try to access my ASP.NET MVC application I get the error:

Access to the path 'C:\inetpub\wwwroot\website\bin\test.Platform.Config.xml' is denied

I run IIS 7.5 with an application pool that has the property:

Identity: ApplicationPoolIdentity

I imagine it is because the 'ApplicationPoolIdentity' cannot read the file I try to access. So my question is: Since the 'ApplicationPoolIdentity' is not a system user, which user or group do I need to grant further access in order to allow the 'ApplicationPoolIdentity' to read the file?

Or is there some other explanation for this authorization problem?


回答1:


Ok I have the solution:

When using "ApplicationPoolIdentity" with IIS 7.5 the corresponding user is (a virtual system user):

"IIS AppPool\<AppPoolName>"

You can grant this user permissions and check security setting by searching for this user. See the full explanation here:

http://www.iis.net/learn/manage/configuring-security/application-pool-identities



来源:https://stackoverflow.com/questions/13461186/granting-access-to-iis-7-5-applicationpoolidentity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!