Click here to Skip to main content
14,239,615 members

.NET Framework

 
PinnedHOW TO ANSWER A QUESTION Pin
Chris Maunder16-Jul-09 3:09
adminChris Maunder16-Jul-09 3:09 
PinnedHow to get an answer to your question Pin
Chris Maunder16-Jul-09 3:05
adminChris Maunder16-Jul-09 3:05 
QuestionHow to log an error through out full application Pin
Anandkumar Prajapati1-Jul-19 0:57
professionalAnandkumar Prajapati1-Jul-19 0:57 
AnswerRe: How to log an error through out full application Pin
Pete O'Hanlon1-Jul-19 1:35
protectorPete O'Hanlon1-Jul-19 1:35 
AnswerRe: How to log an error through out full application Pin
Richard Deeming1-Jul-19 7:40
mveRichard Deeming1-Jul-19 7:40 
A try..catch block doesn't throw exceptions; it's used to handle them.

If you want to log all unhandled exceptions, then the code you need will vary depending on what type of application you're writing. You could start with the AppDomain.UnhandledException event[^] and the TaskScheduler.UnobservedTaskException event[^].

If you really want to log every exception, even those which are handled, then you'll need to subscribe to the AppDomain.FirstChanceException event[^]. NB: This will generate a lot of noise. You will be logging every exception thrown in any code, including .NET itself, regardless of whether or not it's handled.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer

QuestionConditional survey coding Pin
Member 1451542128-Jun-19 4:51
memberMember 1451542128-Jun-19 4:51 
AnswerRe: Conditional survey coding Pin
Dave Kreskowiak28-Jun-19 9:34
mveDave Kreskowiak28-Jun-19 9:34 
AnswerRe: Conditional survey coding Pin
Eddy Vluggen28-Jun-19 13:29
mveEddy Vluggen28-Jun-19 13:29 
AnswerRe: Conditional survey coding Pin
Gerry Schmitz29-Jun-19 2:28
mveGerry Schmitz29-Jun-19 2:28 
GeneralOutlook Current User Context Pin
Member 1106951823-Jun-19 22:07
memberMember 1106951823-Jun-19 22:07 
GeneralRe: Outlook Current User Context Pin
Richard MacCutchan23-Jun-19 23:04
protectorRichard MacCutchan23-Jun-19 23:04 
QuestionCryptography - Substitution Cipher Question Pin
YSLGuru12-Jun-19 19:44
memberYSLGuru12-Jun-19 19:44 
AnsweriRe: Cryptography - Substitution Cipher Question Pin
OriginalGriff12-Jun-19 19:50
protectorOriginalGriff12-Jun-19 19:50 
AnswerRe: Cryptography - Substitution Cipher Question Pin
OriginalGriff12-Jun-19 20:17
protectorOriginalGriff12-Jun-19 20:17 
AnswerRe: Cryptography - Substitution Cipher Question Pin
Eddy Vluggen16-Jun-19 7:43
mveEddy Vluggen16-Jun-19 7:43 
GeneralMessage Closed Pin
24-May-19 21:37
memberMember 1446847024-May-19 21:37 
GeneralRe: how to open dll file Pin
Dave Kreskowiak25-May-19 5:35
mveDave Kreskowiak25-May-19 5:35 
GeneralRe: how to open dll file Pin
Eddy Vluggen12-Jun-19 1:16
mveEddy Vluggen12-Jun-19 1:16 
GeneralRe: how to open dll file Pin
Richard Deeming12-Jun-19 3:37
mveRichard Deeming12-Jun-19 3:37 
GeneralRe: how to open dll file Pin
Richard MacCutchan25-May-19 5:52
protectorRichard MacCutchan25-May-19 5:52 
QuestionMessage Closed Pin
21-Apr-19 6:53
memberMember 1432178121-Apr-19 6:53 
AnswerRe: 阿萨德群无若群无若无群若 Pin
Richard Andrew x6421-Apr-19 7:32
professionalRichard Andrew x6421-Apr-19 7:32 
QuestionPassing Value from XAML to ViewModel Pin
Jassim Rahma20-Apr-19 13:45
memberJassim Rahma20-Apr-19 13:45 
AnswerRe: Passing Value from XAML to ViewModel Pin
Gerry Schmitz21-Apr-19 5:56
mveGerry Schmitz21-Apr-19 5:56 
AnswerMessage Closed Pin
8-May-19 20:03
memberrobermartin8-May-19 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.