I have created a test console application…

 

using System;

using log4net;

 

namespace ConsoleApplication1

{

      /// <summary>

      /// Summary description for Class1.

      /// </summary>

      class Class1

      {

            /// <summary>

            /// The main entry point for the application.

            /// </summary>

            [STAThread]

            static void Main(string[] args)

            {

                  log4net.Config.BasicConfigurator.Configure();

                  Console.WriteLine("Hello World");

                  Console.ReadLine();

            }

      }

}

 

When I run this class I get a SecurityException from an unknown module.  If I remove the log4net.Config.BasicConfigurator.Configure() line, the app runs through fine.

 

Any ideas what could be causing this error?

 

Thanks in advance…

 

Andrew.

 

andrew.steiger
software engineer
267.615.2210

Reply via email to