SharePoint 2013 Custom Error Page for Access Denied RRS feed

  • Question

  • Hi,

    i have created Custom Error page for Access denied using this command  

    Set-SPCustomLayoutsPage -Identity AccessDenied -RelativePath "/_layouts/15/CustomPages/Access_Denied_Custom.aspx" -WebApplication "http://mywebapp"

    but i got like Sorry some thing went wrong  Object reference not set to an instance of an object..can you please help me on this issue..

    Monday, June 8, 2015 11:47 AM


All replies

  • check the logs... they'll include a stack trace that you can use to track the null reference.

    Scott Brickey
    Strategic Data Systems - for all your SharePoint needs

    Monday, June 8, 2015 2:24 PM
  • Hi!

    Scott is right, you'll need to investigate what the ULS logs are telling you in order for us to understand what's going on. 

    Please review the logs when the problem occurs, and if you still have a problem please copy the parts of the log here so we can help you out (remove any sensitive data first though). 


    Tobias Zimmergren
    Microsoft MCP, MCTS, MCT, MVP (SharePoint)
    Blog: www.zimmergren.net
    Twitter: twitter.com/zimmergren
    Corporate site: www.tozit.com

    Monday, July 13, 2015 1:34 PM