简体   繁体   中英

Access Denied in IIS

I have a web application deployed on IIS.

When my Web Application is trying to move file from A location to B location it is giving below error, "System.UnauthorizedAccessException: Access to the path"

Also, Access Denied is faced for folder "D:\FileMove\SomeFolder_1" But it is not faced for folder "D:\FileMove\SomeFolder_2"

Both folder are inside "FileMove" then why issue it is access denied for one folder

go to application pool check the app pool identity and set needed permissions to D:\FileMove\ for that user

How to set permission on the folder in IIS for .net Apps.

因特网信息服务器

the issue is that you didn't set permissions for the user. set the permissions and it should run fine.

try to set the iis_iusrs and iusr full control permission to the D:\FileMove folder. and make sure the replace all child object permission checkbox is checked.

在此处输入图像描述

if you still face issues then try to use the process monitor to capture the permission for the D:\FileMove folder.

https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

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