The following .Net 7 code throws "Insufficient system resources exist to complete the requested service."

Corner Bowl Software 31 Reputation points
2023-06-30T15:45:45.0933333+00:00

The following .Net 7 code throws "Insufficient system resources exist to complete the requested service."

using System.Diagnostics.Eventing.Reader;

internal class Program
{
    private static void Main(string[] args)
    {
        using var session = new EventLogSession();

        _ = new EventLogConfiguration("Microsoft-IIS-Logging/Logs", session);
    }
}
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,097 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.