Sorry for such a long time to reply but I had some issues to solve before this. You're right another thread its trying to get access but its trought the same app, WCF do more than one call to a method so that methods call this specific functions more
than one time, but not with the same thread, this is not mine major concern, the problem is when I get by the lock statement in the try catch block it passes by the writer = factory.Create(); then acess the catch like if it an error has ocurred but
object is null
then debugger jumps into the factory back like if the catch didn't ocurred and enter in LogWriter Create() then
configurationSource isn't null but inside BuildUp magically it appears like null and access the throw new ArgumentNullException("configurationSource");
but this doesnt stops the code (weird) and the execution do the try catch block next trying this method GetObjectBuild() then debuggers enter in catch again but i cant see what is in BuildFailsedException e neither ConfigurationErrorsException cee = GetConfigurationErrosException(e);
that is not null but not visible, then it goes back throwing something I cant figure what or why and returns normaly to execution without any erros in my screen or something logged in the file that I asked to. The only message comes from the Write(LogEntry
log) method: "Log writer failed to acquire lock while writing log entry."
at TryLogLockAcquisitionFailure(Resources.ExceptionFailedToAcquireLockToWriteLog); the message is inside the Resources.ExceptionfailedToAcquireLockToWriteLog.
I cant even understand it quite well its so confuse that I hope not confunsing you too.
Thank you and sorry for such a problem.