Solved

Modify webconf file in order to modify deniedaccess page: it is not working

Posted on 2013-12-30
2
199 Views
Last Modified: 2014-02-05
Hi there,

I modify the web.conf of sharepoint website in order to take a new page

I remplaced

<customErrors mode="On" />

By

<customErrors mode="On">
      <error statusCode="401"
             redirect="AccessDenied.html"/>
</customErrors>

I had AccessDenied.html in the current folder

But, I have always the default Access denied pag

Please help me

Thanks,

Regards,

Simlip
0
Comment
Question by:simlip
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39745821
Hi,
which SharePoint version / edition?

The access denied page in SharePoint is handled differently than in a "normal" ASP.NET web application.

You can set a custom access denied page using Powershell. This blog article explains how to create a custom access denied page as well as the Powershell script to set it:
http://sharepointkings.blogspot.de/2013/07/customize-access-denied-page.html

HTH
Rainer
0
 

Author Comment

by:simlip
ID: 39746103
Hi there,
The version of sharepoint is foundation 2010
I am following your link
Thanks,
Regards,
Simlip
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question