How to enable custom error web.config in SharePoint 2013

This SharePoint 2013 tutorial explains, how to enable custom error web.config in SharePoint 2013/2016? This tutorial, I would like to discuss the issue while rendering SharePoint site “Server Error / Application”. We will discuss how we can enable custom error in SharePoint farm solution.

When I was trying to render my SharePoint site I was getting the below error message.

enable custom error web.config sharepoint 2013

Enable custom error web.config SharePoint 2013

The above error message is soo generic and we don’t understand what has happened exactly. To understand the exact issue we need to enable custom errors for this SharePoint web application.

Follow the below steps to understand the error description:

  • Log on to SharePoint server with FARM Administrator account
  • Open IIS with through run prompt with the command “inetmgr”
  • Identify the web application you want to enable error logging
  • Click on Explore on the right panel
  • Open the Web.config file
  • Identify “” tag
  • Change the mode value to “on”
  • Restart IIS
sharepoint 2013 enable custom errors web.config

Now when you open the site you can see the detailed issue in the browser.

You may like following SharePoint 2013 tutorials:

This SharePoint 2013 tutorial explains, how to enable custom error web.config in SharePoint 2013 or in SharePoint 2016.

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)

envelope
envelope

Krishna Vandanapu

I am Krishna.Vandanapu a SharePoint architect working in IT from last 13+ years, I worked in SharePoint 2007, 2010, 2013, 2016 and Office 365. I have extensive hands on experience in customizing SharePoint sites from end to end. Expertise in SharePoint migration tools like Sharegate, Doc Ave and Metalogix. Migrated SharePoint sites from SharePoint 2007 to 2010 and 2010 to 2013 several times seamlessly. Implementing CSOM with Microsoft best practices. Spent quality time in configuring SharePoint application services like User Profile, Search, Managed Meta data services etc. Now exploring SharePoint Framework and SharePoint 2019

>