SharePoint 2003: Displaying ASP.NET Error Messages instead of the standard WSS error message

From the online documentation @ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/spptsdk/html/tsovOMGdlnsShowASPErrors_SV01108995.asp?frame=true:

Displaying ASP.NET Error Messages

You can disable Microsoft Windows SharePoint Services error messaging so that ASP.NET error messages are displayed instead.

To display ASP.NET error messages, perform the following steps:

  • In the Local_Drive:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\60\TEMPLATE\LAYOUTS folder, change the name of the global.asax file to global.bak.
  • In the web.config file in the same folder, change customErrors = "On" to customErrors="Off".

That is the stupid thing when you are working with SharePoint for so long: you forget to reread the documentation for new additions!

3 Comments

  • Dit is voor in de _layouts folder??



    Als je de volgende regel in de web.config aanpast van:

    <SafeMode MaxControls="50" CallStack="true"/>

    naar:

    <SafeMode MaxControls="50" CallStack="false"/>



    Even de CustomErrors op off zetten en je krijgt de CallStack te zien, wanneer er een fout optreedt in de SharePoint site.

  • Great!! This will sure help a lot, if we only knew this some months ago...;-)

  • Rename files to .bak is a bad practice.

    Bak files may be served by the webserver.

Comments have been disabled for this content.