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?

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">)
  • That's no solution as it gives the user no hint as to what happened. – Denis Oct 27 '14 at 14:23
  • The user will get nice SharePoint popup window with the same message text but without terrible ASP callstack information. – Ruslan Dayanov Oct 27 '14 at 14:34
  • As far as i can see, he will get this error message: !nice error – Denis Oct 27 '14 at 14:37
  • You have made a mistake somewere in web.config. Check your modifications and fix it. – Ruslan Dayanov Oct 27 '14 at 14:41
  • Ok, got it to work! Sorry, there were one web.config where i forgot to agjust the settings! – Denis Oct 27 '14 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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