Click here to Skip to main content
15,896,118 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionUsing a GAC-registered assembly in a web application Pin
tiwal23-Jul-19 0:39
tiwal23-Jul-19 0:39 
AnswerRe: Using a GAC-registered assembly in a web application Pin
Eddy Vluggen23-Jul-19 1:13
professionalEddy Vluggen23-Jul-19 1:13 
GeneralRe: Using a GAC-registered assembly in a web application Pin
tiwal23-Jul-19 1:35
tiwal23-Jul-19 1:35 
GeneralRe: Using a GAC-registered assembly in a web application Pin
Eddy Vluggen23-Jul-19 2:54
professionalEddy Vluggen23-Jul-19 2:54 
GeneralRe: Using a GAC-registered assembly in a web application Pin
tiwal23-Jul-19 3:51
tiwal23-Jul-19 3:51 
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
mvePete 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

GeneralRe: How to log an error through out full application Pin
Richard Andrew x6420-Jul-19 2:04
professionalRichard Andrew x6420-Jul-19 2:04 
GeneralRe: How to log an error through out full application Pin
Richard Deeming22-Jul-19 7:29
mveRichard Deeming22-Jul-19 7:29 
QuestionConditional survey coding Pin
Member 1451542128-Jun-19 4:51
Member 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
professionalEddy 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
Member 1106951823-Jun-19 22:07 
GeneralRe: Outlook Current User Context Pin
Richard MacCutchan23-Jun-19 23:04
mveRichard MacCutchan23-Jun-19 23:04 
QuestionCryptography - Substitution Cipher Question Pin
YSLGuru12-Jun-19 19:44
YSLGuru12-Jun-19 19:44 
AnsweriRe: Cryptography - Substitution Cipher Question Pin
OriginalGriff12-Jun-19 19:50
mveOriginalGriff12-Jun-19 19:50 
AnswerRe: Cryptography - Substitution Cipher Question Pin
OriginalGriff12-Jun-19 20:17
mveOriginalGriff12-Jun-19 20:17 
AnswerRe: Cryptography - Substitution Cipher Question Pin
Eddy Vluggen16-Jun-19 7:43
professionalEddy Vluggen16-Jun-19 7:43 
GeneralMessage Closed Pin
24-May-19 21:37
Member 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
professionalEddy 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
mveRichard MacCutchan25-May-19 5:52 

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.