Sometimes debugging SharePoint errors is not the easiest of tasks. The most common and annoying situation is when the “An unexpected error has occurred” error message is shown and nothing is written to both the trace log files (check my previous post on Diagnostic Logging for more information on this) and Event Viewer. In order for the real error message to be shown, two settings must be changed in the web.config file:
  • <SafeMode MaxControls=”200″ CallStack=”false”… /> must be changed to <SafeMode MaxControls=”200″ CallStack=”true” … />
  • The customError setting must be changed to “Off”:
<customErrors mode=”Off“/> After these changes, the “An unexpected error has occurred” will no longer be shown and you will see the real error message in a standard ASP.NET error page, including all the debugging information you need.

Related Articles

To learn why your business should migrate to SharePoint Online and Office 365, click here and here. If you want to convert your tenant’s root classic site into a modern SharePoint site, click here. If you or your customers are not ready to move entirely to the Cloud and Office 365, a hybrid scenario could be an interesting scenario and SharePoint 2019 RTM was recently announced with improved hybrid support! To learn all about SharePoint 2019 and all its features, click here. If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click here and here. If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click here and here. If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click here and here. If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click here and here. If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click here and here. If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click here. If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click here. If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these learning resources. If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read this article. Happy SharePointing!

LEAVE A REPLY

Please enter your comment!
Please enter your name here