Hi Team,

This is Anil. I am working as a .net Tech Lead and i am using log4net for
logging purposes.

Below are the version details of the same

[image: image.png]


I am trying to execute the Parllel.Invoke which intiializes the EventLog
Appender as below and calls the ActivateOptions method

System.Threading.Tasks.Parallel.Invoke(() => CreateEventLogger(),
() => CreateEventLogger(), () => CreateEventLogger());



private void CreateEventLogger()
{
            var eventLogger = new EventLogAppender();
            eventLogger.ActivateOptions();
}

I am getting the below error for the first time where the event source is
not created.

*Source Log4NetTest.exe already exists on the local computer.*
Document
NameValueType
◢ $exception {"Source Log4NetTest.exe already exists on the local
computer."} System.ArgumentException
we are creating multiple hpc tasks in the HPC job manager which is using
log4net for logging.

Can you please let us know if there is any fix for this issue?

Regards,

Anil

Reply via email to