user478636
user478636

Reputation: 3424

The type or namespace name 'XmlConfigurator' could not be found

The type or namespace name 'XmlConfigurator' could not be found (are you missing a using directive or an assembly reference?)

Am I missing a namespace???

Upvotes: 1

Views: 4613

Answers (3)

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

You have to add log4net.dll to your project and the using log4net.Config; namespace

Upvotes: 3

rlperez
rlperez

Reputation: 1328

There is the possibility that you have not added the dll. This would require right clicking your project and adding the reference DLL. There is one other step that wasn't mentioned in the previous answers that I found relevant.

There is the possibility that you are not using the correct runtime. I found that log4net requires a full profile. For instance the client profile for .NET 4 will generate this error but if you use the full profile you will not experience this.

Upvotes: 0

Paweł Smejda
Paweł Smejda

Reputation: 2005

Your missing dll. Right click on your project and Add Reference... point to correct dll.

Upvotes: 1

Related Questions