简体   繁体   English

ASP.NET网站内的文件夹只能由一个用户访问?

[英]Folder Inside ASP.NET Website Only Accessible By One User?

We're running Microsoft Server 2008 using IIS 7 . 我们正在使用IIS 7运行Microsoft Server 2008 Our website is set up such that any Active Directory user who is a part of our main group can access anything (any .aspx file) within the website. 设置我们的网站是为了使属于我们主要组的任何Active Directory用户都可以访问该网站中的任何内容(任何.aspx文件)。 Of course, if they are not using Internet Explorer, they will be prompted to enter their username and password. 当然,如果他们没有使用Internet Explorer,则会提示他们输入用户名和密码。

One folder within the website (MVCPages folder) appears to be only accessible to one single AD user (this guy is no longer with us). 网站上的一个文件夹(MVCPages文件夹)似乎只能由一个AD用户访问(此人不再与我们在一起)。 We're trying to figure out why all files within this particular folder are only accessible to him. 我们试图弄清楚为什么只允许他访问此特定文件夹中的所有文件。 He is (1) an AD user who is a part of the same group that everyone else is and (2) the folder permissions are virtually identical to all other folders within the website. 他是(1)与其他人一样属于同一组的AD用户,并且(2)文件夹权限实际上与网站中的所有其他文件夹相同。

I believe this is folder based because if you try to access any files within the folder (I haven't tried all becuase there are 50+ .aspx files) then you are rejected unless you are signed in as him. 我相信这是基于文件夹的,因为如果您尝试访问该文件夹中的任何文件(我没有尝试所有操作,因为有50+ .aspx文件),那么除非您以他的身份登录,否则您将被拒绝。

If you have any questions feel free to ask. 如果你有任何问题随时问。

Thanks 谢谢

It was an issue in the web.config file. 这是web.config文件中的问题。

Lines... 线...

<allow roles="Admins" />

<deny users="*" />

... caused all users without Admins role to be unable to access the page. ...导致所有没有管理员角色的用户都无法访问该页面。

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

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