在asp.net权限错误文件上传(拒绝访问路径X) [英] File uploading in asp.net permission error (Access denied to path x)
问题描述
我想上传一些图片文件在我的asp.net web应用程序。
I'm trying to upload some image files in my asp.net web app.
服务器操作系统:Windows Server 2003和IIS 6
Server OS: Windows server 2003 and IIS 6
我授予写入权限在IIS中根和目标文件夹,并授予FullControl访问该用户IUSer_Mashinname,Asp.net用户,网络服务,每个人,和所有其他用户的Web应用程序根目录和上传目标文件夹,但有是拒绝访问的问题。
I granted write permission in IIS to root and destination folder and granted FullControl Access to this users IUSer_Mashinname, Asp.net user, network services,Everyone, and all other users to the web app root folder and upload destination folder, but there is "Access denied problem".
推荐答案
我有同样的问题,使用的将procmon 来确定,虽然我的应用程序池IIS_IUSRS下运行(其中有写和修改PRIVS),有人冒充IUSR。添加到PRIVS IUSR解决了这一问题。
I had the same problem and used procmon to determine that although my app pool was running under IIS_IUSRS (which had write and modify privs), it was impersonating IUSR. Adding privs to IUSR fixed the problem
这篇关于在asp.net权限错误文件上传(拒绝访问路径X)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!