Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- From: "Danne" <dawestman@xxxxxxxxx>
- Date: 27 Nov 2006 09:28:34 -0800
What is your default permission on the site in IIS? do you have both
anonymous access and integrated windows authentication? I usually gets
this behavior when installing a new portal but when all configuring is
done it's always gone, i can't point my finger on what exact
configuration does the trick but i could investigate a bit more when i
get back to the office:)
My tip is still that you concentrate on authentication to your website
rather then code.
If i'm totally out, please post your solution or mail it, a bit curious
on this one.
//D
FreeOperator skrev:
Hi Danne,
Thanks for your reply.
Yes, I have once tried adding the URL to the "Local Intranet" and the
"Trusted Site" zones but it did not work.
On the other hand, it is Shareponit's default behavior to pop up that
login box whenever user tries to access the sharepoint page to which
he/she does not the permission. This is by design and can be
overwritten programmatically by setting the
"CatchAccessDeiniedException" property of the site object to false. But
this does not seem to be a global switch (see my original post for
detail).
Cheers,
Tracy
Danne wrote:
Hi.
This actually sounds like a network login box from the way you
describes it.
Add the url to a safe or intranet zone and give it another try.
//D
FreeOperator skrev:
Dear all,
I have set up different access permissions for the form lists of our
Sharepoint site. When user with lower access permission tries to access
a form list requiring higher permission, Sharepoint will pop up that
annoying login box by default asking for username/password. It takes
user three attempts before that "Access Denied" page is displayed. Is
there a way to make Sharepoint display the "Access Denied" page
directly without popping up the login box at all? Any advice?
By the way, I tried to put a web part on the site home page and added
the following code for its "CreateChildControls" function. But it does
not work. Looks like this "CatchAccessDeniedException" property is not
a global switch.
protected override void CreateChildControls()
{
// Turn off the login dialog in case of authenticating error
if (SPControl.GetContextWeb(Context).Site.CatchAccessDeniedException)
SPControl.GetContextWeb(Context).Site.CatchAccessDeniedException =
false;
}
Thanks,
Tracy
.
- Follow-Ups:
- References:
- How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- From: FreeOperator
- Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- From: Danne
- Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- From: FreeOperator
- How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- Prev by Date: Re: Is one document library per site sufficient, because folders can be used?
- Next by Date: Re: Trying to Install "Windows Worlkflow Foundation Beta 2 (build 3.0.3807.7 or later)" for SharePoint 2007
- Previous by thread: Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- Next by thread: Re: How to display the "Access Denied" page directly without the annoying Sharepoint login box?
- Index(es):
Relevant Pages
|