The stack trace in error messages can help you or K2 Support to determine where the error is coming from. However, your company may have a security requirement that requires you to hide the stack trace from your users. This KB will provide you with instructions on how to hide your stack trace.
Before You Begin
Create a backup of [Program Files]\K2\K2 SmartForms Runtime\web.config.
If you want to hide the stack trace in Designer as well, then create a backup of [Program Files]\K2\K2 SmartForms Designer\web.config as well.
- On the server that is hosting SmartForms, go to [Program Files]\K2\K2 SmartForms Runtime
- Edit web.config with a text editor
- Search for "ExtendedExceptionDetail"
- Change the value from "True" to "False". It should look like this when done:
<add name="ExtendedExceptionDetail" value="False" />
- Save the changes
- If you want to hide the stack trace for Designer as well, then you need to make the same changes to the web.config in [Program Files]\K2\K2 SmartForms Designer
- Perform IISRESET to apply the changes.