An event log is a file used to record a timeline of events along with contextual metadata
Questions tagged [event-log]
1270 questions
7
votes
4 answers
Unhandled IIS Exception - How can I track it down
I am seeing the following error in the event log. It is coming from our ASP.Net application. I am having trouble tracking down what is causing the error. Any suggestions appreciated!
OS: Windows Server 2000
WebServer: IIS 6
Application: ASP.Net…

James
- 7,877
- 7
- 42
- 57
7
votes
1 answer
Can an Outlook addin write to the system event log?
I have an outlook add-in developed with VSTO 2010 that I want to write some event logging. While debugging I can get this to work by simply doing the following:
if (!EventLog.SourceExists(ADDIN_FRIENDLY_NAME))
{
…

user1715925
- 607
- 9
- 26
7
votes
4 answers
What do the details of an APPCRASH message mean?
I am experiencing an APPCRASH from my C# application. The Runtime gives an error message of "This application has requested the Runtime to terminate it in an unusual way". Then, when I click okay I get a "MyApplication has stopped working" message…

user1646801
- 259
- 2
- 7
7
votes
3 answers
Using EventLog in ClickOnce application
I've got a library that I use across multiple ClickOnce applications. In the event of an error in this library I would like to write the error to the windows EventLog.
I found a KB article on how but it seems that this requires administrator…

Fr33dan
- 4,227
- 3
- 35
- 62
7
votes
4 answers
How to convert .evtx eventlog to csv
My windows service needs to save the contents of one eventlog to a file. This is done by EventLogSession.ClearLog. However, i cannot force it to save the eventlog to CSV directly. The saved format is EVTX.
EventLogSession els = new…

real_yggdrasil
- 1,213
- 4
- 14
- 27
7
votes
4 answers
How to direct the EventLogTraceListener to create in a specific Log
The following listener will create an event entry when the Trace.WriteLine is called. If the source does not exist he will create it in the default log channel which is 'Application' . I want to specify another default Log channel but after…

MichaelD
- 8,377
- 10
- 42
- 47
7
votes
2 answers
Windows EventLog Permissions
What permissions do I need to give a User for them to be able to write to the Windows EventLog? I have an ASP.NET application that needs to impersonate a user and that impersonated user must be able to write the event log

James Alexander
- 6,132
- 10
- 42
- 56
6
votes
2 answers
How To Disable .NET Event Log Warnings?
Per our policy we are no longer allowed to write to event log, so I removed all my event log code from writing to the event log, which works, however I keep getting random ASP.NET 4.0 Warnings from the errors, even though I have code in my…

jaekie
- 2,283
- 4
- 30
- 52
6
votes
1 answer
Windows EventLog cannot exceed 32766 characters
when i write log to windows eventlog:
System.Diagnostics.EventLog.WriteEntry("SourceName", a_long_string);
i got the following exception:
Log entry string is too long. A string written to the event log cannot exceed 32766 characters.
then i…

marstone
- 686
- 1
- 10
- 23
6
votes
3 answers
Windows Service output not showing up in Event Log
I am trying to follow this walkthrough.
I'm using Visual Studio 2010 Premium.
The only events I see in Server Explorer or in Event Viewer are "Service started successfully." and "Service stopped successfully."
Here is the service code:
namespace…

feenst
- 61
- 1
- 2
6
votes
3 answers
How to write event log using vbscript
I want to write event log when this vbscript run. How to i can?
Thanks for any help.

Emree
- 85
- 1
- 1
- 5
6
votes
1 answer
Diagnosing CLR errors in Windows Event Viewer
We have an .NET desktop application that crashed in production. How do we diagnose the error? I'd like to know the type of exception that occurred, the error message, and the stack trace.
Because the exception wasn't handled by our code, we received…

Judah Gabriel Himango
- 58,906
- 38
- 158
- 212
6
votes
1 answer
How to get event log files from Azure app service without Cloud Explorer?
I have an Azure app service. In Visual Studio 2019 I can do this to get event logs from it:
Open Cloud Exlorer window (View -> Cloud Explorer).
Log in with my Azure credentials.
Expand subscription, then resource group, then app service.
Expand the…

Claus Appel
- 1,015
- 10
- 28
6
votes
3 answers
log4net doesn't log in Windows Event Viewer
I would like to log in the Windows Event Viewer using log4net.
I created a Console Application (.NET Framework 4), I added the reference log4net.dll, I put the following code in my App.config:

Nico
- 575
- 3
- 8
- 19
6
votes
5 answers
Is there a way to tell which EventLog caused the EntryWritten event in C#?
I'm working on a web application that shows event logs data, similar to Event Viewer. The application also has to provide a way for users to subscribe to event logs and receive notifications when an entry is written to subscribed logs, using a web…

markhan777
- 63
- 4