Log4net not write log on IIS .net core 6

Stefano Ghinassi - NetribeGroup 0 Reputation points
2024-09-20T14:32:04.48+00:00

I have two .NET Core 6 services on IIS in two separate application pools. In both, I use Log4Net to log errors. I have given NETWORK DEVICE user permissions on the log directories. The first service logs correctly, but the second one does not. However, if I stop the second application pool and start the service from the command line, it starts logging.

However, no errors are recorded in the event viewer

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,551 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.