Link to home
Start Free TrialLog in
Avatar of shabkap
shabkap

asked on

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.
Avatar of tiagosalgado
tiagosalgado
Flag of Portugal image

set <compilation debug="false" /> in your web.config
Avatar of shabkap
shabkap

ASKER

tried it.  did not work
Try <customErrors mode="RemoteOnly" />

ASKER CERTIFIED SOLUTION
Avatar of Anurag Thakur
Anurag Thakur
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shabkap

ASKER

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