In the past, while testing with a large volume of messages in a lab environment in one of my client machines, the processes started to get suspended with the following error:
Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘MyAssembley.Orchestrations.Service (6dbc699a-a109-9141-f05e-444b065a1a09)’.
The service instance will remain suspended until administratively resumed or terminated. If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
Shape name: Response Error Construct Msg
Exception thrown from: segment 3, progress 3
Inner exception: The event log file is full
Exception type: Win32Exception
Target Site: Void InternalWriteEvent(UInt32, UInt16, System.Diagnostics.EventLogEntryType, System.String, Byte, System.String)
The following is a stack trace that identifies the location where the exception occurred at System.Diagnostics.EventLog.InternalWriteEvent(…)
The event viewer is not properly configured and it reached the maximum limit of the log file. This causes that when we tried to write in EV he throws this type of exception.
Configure the event in question with the following settings:
- Maximum log size (Kb): 20489 – that is 20 MB, which gives us a comfortable historic of events
- And the option “Overwrite events as needed (oldest events first)” is select, with this option we prevent that the log to exceed its limits, avoiding this kind of errors.