开发者

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

开发者 https://www.devze.com 2023-02-22 00:47 出处:网络
The type or namespace name \'XmlConfigurator\' could not be found (are you missing a using directive or an assembly reference?)

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???开发者_StackOverflow社区


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


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消