How to enable full ASP.net errors in SharePoint

  • 24 February 2022
  • 0 replies
  • 43 views

Badge +3
 

How to enable full ASP.net errors in SharePoint

KB001222

PRODUCT
K2 blackpearl
LEGACY/ARCHIVED CONTENT
This article has been archived, and/or refers to legacy products, components or features. The content in this article is offered "as is" and will no longer be updated. Archived content is provided for reference purposes only. This content does not infer that the product, component or feature is supported, or that the product, component or feature will continue to function as described herein.

 

Introduction

 

 

By default SharePoint does not display full ASP.net errors, which might make logging errors or debugging potential issues difficult.  The error message that will most likely be displayed by default will look similar to the following image:

Image

 

 

Implementation

To view the full ASP.net error descriptions in SharePoint perform the following steps:

 

  1. Backup the web.config file
  2. Open the web.config file in notepad and change <SafeMode MaxControls="200" CallStack="false" to <SafeMode MaxControls="200" CallStack="true"
  3. Change the CustomErrors mode to Off <customErrors mode="Off"/>
  4. Save changes
  5. Perform an IISRESET

 The Error messages will now be displayed in a similar way as in this example:

Image

 


0 replies

Be the first to reply!

Reply