简体   繁体   中英

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

We're running Microsoft Server 2008 using IIS 7 . 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. Of course, if they are not using Internet Explorer, they will be prompted to enter their username and password.

One folder within the website (MVCPages folder) appears to be only accessible to one single AD user (this guy is no longer with us). 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.

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.

If you have any questions feel free to ask.

Thanks

It was an issue in the web.config file.

Lines...

<allow roles="Admins" />

<deny users="*" />

... caused all users without Admins role to be unable to access the page.

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