简体   繁体   中英

IIS 7 Grant folder access

I get the following error:

ASP.NET is not authorized to access the requested resource. Consider granting access 
rights to the resource to the ASP.NET request identity. ASP.NET has a base process 
identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used   
if the application is not impersonating. If the application is impersonating via 
<identity impersonate="true"/>, the identity will be the anonymous user (typically 
IUSR_MACHINENAME) orthe authenticated request user. 

I have read that there is no ASPNET user in IIS 7. I have also added [Machine name]\\IIS_IUSRS but still get the error. Which user do I need to add?

Try IIS APPPOOL[apppoolname_without_spaces].
In IIS7 all your apppool work under AppPoolIdentity. For example Default App Pool will have user IIS APPPOOL\\DefaultAppPool.

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