Solved

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

Posted on 2013-12-30
2
184 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
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SharePoint 2013 Emulating SharePoint 2010 8 89
Sharepoint 2013 error 4 56
Cloud / Hybrid file storage & collaboration 5 83
Moving SharePoint 3.0 role to differen server 7 68
Work Over Net is a new and very powerful collaboration product. With its new easy interface it is becoming very competitive to other similar products like webex and office interactive. WON 2010 have the standard business tools needed for multi-offic…
I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used. The spreadsheet used in the permutations and combinations  video.:  The spreadsheet used in the permutations and combinations  video. The…

792 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