There is a .NET x86 console application Executor.exe that runs in Task Scheduler on various Windows Server 2008 R2.

On one of the servers in the EventLog in Application, the following error falls:

Faulting application name: Executor.exe, version: 8.0.5711.22101, time stamp: 0x55d6ec7b
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18933, time stamp: 0x55a69ec4
Exception code: 0xe0434352
Fault offset: 0x0000c42d
Faulting process id: 0xf90
Faulting application start time: 0x01d0e014c4d6bbe5
Faulting application path: C: \ P1 \ Bin \ Executor.exe
Faulting module path: C: \ Windows \ syswow64 \ KERNELBASE.dll
Report Id: 042d5ce5-4c08-11e5-859f-d8ea27135603

UPD

Message options:

  • Source: .Net Runtime
  • Event ID: 1000

This message appears in a pair with the message: - Source: .Net Runtime
- Event ID: 1026
- Message:

Application: Executor.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception.
Exception Info: System.Configuration.ConfigurationErrorsException
Stack:
at System.Diagnostics.ListenerElement.GetRuntimeObject ()
at System.Diagnostics.ListenerElementsCollection.GetRuntimeObject ()
at System.Diagnostics.TraceSource.Initialize ()
at System.Diagnostics.TraceSource.TraceEvent (System.Diagnostics.TraceEventType, Int32, System.String)
at Program.Main (System.String [])

How to win it?

  • Put all try / catch, when an exception arrives, log it and complete the execution correctly. - VladD 4:34 pm
  • @VladD So done. The fact is that the main functionality works without errors, i.e. There is nothing in catch. - mals
  • Hmm, strange. That is, it is not a thrown exception? - VladD
  • @ValdD Yes. A message appears on every start. - mals
  • Well, if reproduced, you can experiment. Example: Is the problem reproduced in a simple helloworld? - VladD

1 answer 1

The problem was an error in the cofig file.

One of the sources had a reference to the "Console" listener, which was not declared in sharedListeners:

<source name="source1" switchName="Switch1"> <listeners> <add name="Console"/> <add name="EdgeEventLog"/> </listeners> </source>