Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1013
  • 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
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
Anurag ThakurCommented:
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 ThakurCommented:
the authors requirement has been fulfilled by my comment i suppose ID:22767104
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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