?
Solved

Hide StackTrace in Exception

Posted on 2008-10-10
8
Medium Priority
?
993 Views
Last Modified: 2013-12-17
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
Comment
Question by:shabkap
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
8 Comments
 
LVL 8

Expert Comment

by:tiagosalgado
ID: 22687979
set <compilation debug="false" /> in your web.config
0
 

Author Comment

by:shabkap
ID: 22688169
tried it.  did not work
0
 
LVL 8

Expert Comment

by:tiagosalgado
ID: 22688293
Try <customErrors mode="RemoteOnly" />

0
Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 1000 total points
ID: 22689536
0
 

Author Comment

by:shabkap
ID: 22767104
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
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22947086
the authors requirement has been fulfilled by my comment i suppose ID:22767104
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question