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.
shabkapAsked:
Who is Participating?
 
Anurag ThakurConnect With a Mentor Technical ManagerCommented:
0
 
tiagosalgadoCommented:
set <compilation debug="false" /> in your web.config
0
 
shabkapAuthor Commented:
tried it.  did not work
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
tiagosalgadoCommented:
Try <customErrors mode="RemoteOnly" />

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.