“The Website declined to show this web page”
A link was provided in the site that had “/_layouts/…../…..” in the URL. So it was pointing to something under “_layouts” directory. Users received IE errors saying: “the Website declined to show this web page…….the website requires you to log in.”
This error could actually occur due to many different reasons. Here is how I was able to get rid of this:
It was usually suggested over the web that it was a problem with directory browsing which might not be enabled at IIS level for the website. As far as directory browsing was concerned, yeah we were trying to view some directories under “/_layouts/….”, however, I am pretty sure it wasn’t disabled. Even then, I tried enabling/disabling directory browsing, double checked directory permissions but nothing worked. At last made the user a Site Collection Administrator and it worked.
Not a great solution I know but it served the purpose for me. Below is another way to resolve this issue:
Updated: If the above is no good for you, go to your web root in IIS that is causing this problem. Right click ->Properties:
Go to the Documents tab and look whether the default document that’s being hit through the browser is in the list along with the type of the document e.g. index.htm, default.aspx etc etc. If it is not, add it and make it the top one:
Also, go to the Directory Security tab, click on Edit in the “Authenication and Access Control” section. Double check all the security settings and make sure they are set as per your configuration i.e. Anonymous or Windows Authentication etc etc:
If still doesn’t work, for more information here is a nice post:
Hope this helps…….