How to hide stack trace in error messages in SmartForms

  • 15 February 2022
  • 0 replies
  • 56 views

Userlevel 5
Badge +20
 

How to hide stack trace in error messages in SmartForms

kbt149535

PRODUCT
K2 Five 5.0 to 5.1
K2 blackpearl 4.7
BASED ON
K2 blackpearl 4.7
This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice. This article is not considered official documentation for K2 software and is provided "as is" with no warranties.

Objective

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]K2K2 SmartForms Runtimeweb.config.

 

If you want to hide the stack trace in Designer as well, then create a backup of [Program Files]K2K2 SmartForms Designerweb.config as well.

How-to Steps

  1. On the server that is hosting SmartForms, go to [Program Files]K2K2 SmartForms Runtime
  2. Edit web.config with a text editor
  3. Search for "ExtendedExceptionDetail"
  4. Change the value from "True" to "False". It should look like this when done:
     
    <add name="ExtendedExceptionDetail" value="False" />
  5. Save the changes
  6. 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]K2K2 SmartForms Designer
  7. Perform IISRESET to apply the changes.

0 replies

Be the first to reply!

Reply