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.
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.
set <compilation debug="false" /> in your web.config
ASKER
tried it. did not work
Try <customErrors mode="RemoteOnly" />
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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