简体   繁体   English

IIS 拒绝访问

[英]Access Denied in IIS

I have a web application deployed on IIS.我在 IIS 上部署了一个 web 应用程序。

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"当我的 Web 应用程序试图将文件从 A 位置移动到 B 位置时,出现以下错误,“System.UnauthorizedAccessException:访问路径”

Also, Access Denied is faced for folder "D:\FileMove\SomeFolder_1" But it is not faced for folder "D:\FileMove\SomeFolder_2"此外,文件夹“D:\FileMove\SomeFolder_1”面临拒绝访问,但文件夹“D:\FileMove\SomeFolder_2”则未面临访问拒绝

Both folder are inside "FileMove" then why issue it is access denied for one folder这两个文件夹都在“FileMove”内,那么为什么问题是一个文件夹被拒绝访问

go to application pool check the app pool identity and set needed permissions to D:\FileMove\ for that user go 应用程序池检查应用程序池身份并为该用户设置 D:\FileMove\ 所需的权限

How to set permission on the folder in IIS for .net Apps.如何为.net Apps设置IIS文件夹的权限。

因特网信息服务器

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.尝试将 iis_iusrs 和 iusr 完全控制权限设置为 D:\FileMove 文件夹。 and make sure the replace all child object permission checkbox is checked.并确保选中替换所有子项 object 权限复选框。

在此处输入图像描述

if you still face issues then try to use the process monitor to capture the permission for the D:\FileMove folder.如果您仍然遇到问题,请尝试使用进程监视器来捕获 D:\FileMove 文件夹的权限。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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