[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1017
  • Last Modified:

Hide StackTrace in Exception

Hi,
  I am trapping errors and throwing it. But it shows all the details of the Stack Trace with it. How do I hide this ? I do not want to display the StackTrace details to the users. Thanks for all your help.
0
shabkap
Asked:
shabkap
  • 2
  • 2
  • 2
1 Solution
 
tiagosalgadoCommented:
set <compilation debug="false" /> in your web.config
0
 
shabkapAuthor Commented:
tried it.  did not work
0
 
tiagosalgadoCommented:
Try <customErrors mode="RemoteOnly" />

0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Anurag ThakurTechnical ManagerCommented:
0
 
shabkapAuthor Commented:
I tried this and it worked. I throw the error back to the ASP page and trap it there by just displaying the message from the exception.  This way i dont get the stack trace.
0
 
Anurag ThakurTechnical ManagerCommented:
the authors requirement has been fulfilled by my comment i suppose ID:22767104
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now