SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've set

  <customErrors mode="Off" />

in my web.config file, but i'm still getting 'unknown error' instead of the stacktrace on my pages. How can I view the stacktrace?

share|improve this question
up vote 4 down vote accepted

If you're getting this error on sharepoint/wss specific pages, you also have to add following fragment to your web.config to view the stacktrace:

    <SafeMode MaxControls="200" CallStack="true" DirectFileDependencies="10" TotalFileDependencies="50" AllowPageLevelTrace="false">

You can define a specific path in the PageParserPaths element, but this is optional. Don't forget to turn off the custom errors after you found the problem (certainly for a public facing site).

share|improve this answer
I think it is worth noting that you may already have CallStack="false" in your web.config, so you may just need to change it to true. – Kit Menke May 16 '11 at 14:36

The full range of things to do is listed on this page:

You need to also set CallStack to true in the SafeMode node to see the CallStack you require.

share|improve this answer

Try setting <customErrors mode="Off" /> in the following web.config file in addition to your webapp web.config file.

C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\ADMIN\web.config
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.