Enabling custom Errors in SharePoint

how to enable custom errors in sharepoint 2013

In this article, I would like to discuss the issue while rendering SharePoint site “Server Error / Application”. We will discuss now we can enable custom error in SharePoint farm solution.

Issue: Not able to render SharePoint site

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

SharePoint deveopment training course
sharepoint 2013 central administration runtime error
sharepoint 2013 central administration runtime error


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 web application.

Follow the below steps to understand the error description:

  1. Log on to SharePoint server with FARM Administrator account
  2. Open IIS with through run prompt with the command “inetmgr”
  3. Identify the web application you want to enable error logging
  4. Click on Explore on the right panel
  5. Open the Web.config file
  6. Identify “<cusotmErrors mode=”off”> ” tag
  7. Change the mode value to “on”
  8. restart IIS
how to enable custom errors in sharepoint 2013
how to enable custom errors in sharepoint 2013

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

Happy development in SharePoint !!!

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

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


About 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

View all posts by Krishna Vandanapu →