IIS - You are not authorized to view this page error message
I am trying to setup IIS to allow anonymous access via the "IUSR_" account. I've set the password to that account in Computer Management. I've given that account permissions to the physical folder and child folders that the website is being ran on.
Enable anonymous access is checked in IIS for this site, and the Username/password are set correctly.
However, when i go to view the site i get this error:
You are not authorized to view this page HTTP Error 401.1 - Unauthorized: Access is denied due to invalid credentials.
What could开发者_运维知识库 be causing this? I thought maybe the Appplication Pool, but that seems to be setup correctly using the predefined "Network Service" account.
Update: If i change the anonymous access user to the administrator account, then everything works. But, ultimately, i cant have the site go live like that.
Update 2: Fixed! This might not pertain to alot of people here, but it was a Local Security Setting. I had removed IUSR from "Access this computer from the network" per some security rules a few weeks back.
- Go to Control Panel
- Open Administrative Tools
- Then open Internet Information Services window
- Further click on the name of local computer (beneath IIS lable) which is on left column
- Expand the tree and look for your website's folder
- On right hand column, where your HTML file is listed, right click and choose open.
- This html file will open in your browser.
- Then try to open the same page by choosing "browse" option. Most probably, it will show you the error "You are not authorised to view this page."
- To fix this, right click again on the html file and this time choose All tasks > permission wizard...
- Just click next, next and finally finish this wizard. It will automatically set the admin permissions and other security settings at ease. Hope, this will resolve the issue as it did in my case.
I reset the password back to the default password by following this link to Microsoft's KB article.
It sounds like you set up the site right. Is it possible that you have made a mistake with which site you configured and the address you are attempting to access?
- Go to IIS manager
- Select the service which is not working (computername)
- Right click it and select properties
- Select directory security
- Select the Directory Security tab, Click the Edit button of Authentication and access control. A popup will appear
- Here you can see the username and the password, and change them
Congrats as you found the cause. Simply share with you a critical KB on the permissions and user rights,
http://support.microsoft.com/kb/812614
精彩评论