Solved

Hide StackTrace in Exception

Posted on 2008-10-10
8
967 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
  • 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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 250 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Normally the drop down box control found in the .Net framework tools is able to select just one data and value at a time, which is displayed on the text area.   But what if you want to have multiple values to be selected in the drop down box? As …
It seems a simple enough task, yet I see repeated questions asking how to do it: how to pass data between two forms. In this article, I will show you the different mechanisms available for you to do just that. This article is directed towards the .N…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now