1

We have a Sharepoint 2013 Foundation installation, with a document library that has check-out requirement activated.

When the user tries to restore an older version of a document, the following error is generated:

Error

This is pretty annoying, as the end-user will panic when confronted with this.

Any idea on how to catch this error and maybe display a nicer message?

1 Answer 1

0

Disable debugging, change the following XML in the web.config file:

  • Turn off the call stack (CallStack="false")
  • Enable custom errors in Visual Studio (<customErrors mode="On" />)
  • Disable compilation debugging (<compilation debug="false">)
5
  • That's no solution as it gives the user no hint as to what happened.
    – Denis
    Commented Oct 27, 2014 at 14:23
  • The user will get nice SharePoint popup window with the same message text but without terrible ASP callstack information. Commented Oct 27, 2014 at 14:34
  • As far as i can see, he will get this error message: !nice error
    – Denis
    Commented Oct 27, 2014 at 14:37
  • You have made a mistake somewere in web.config. Check your modifications and fix it. Commented Oct 27, 2014 at 14:41
  • Ok, got it to work! Sorry, there were one web.config where i forgot to agjust the settings!
    – Denis
    Commented Oct 27, 2014 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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