PC Review


Reply
Thread Tools Rate Thread

log4net's XmlConfigurator not an attribute class?

 
 
Atiz
Guest
Posts: n/a
 
      7th Mar 2007
Hi all,
I'm trying to use log4net in my c#.net project. I am able to use the
log4net functiosn without any problem but when I want to make my proj
find the config file in assemblyinfo.cs, the compiler complained that
XmlConfigurator is not an attribute class:

[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log.config",
Watch = true)]

what can I do to solve this problem? I have already referenced
log4net.dll in my proj. The examples that I can search online were
only to add this line to assemblyinfo.cs to find the required config
file.

TIA
Atiz

 
Reply With Quote
 
 
 
 
Atiz
Guest
Posts: n/a
 
      8th Mar 2007
I realised that because the assembly level attributes cannot be
retrieved in Compact Framework 1.0, all the configuration assembly
attributes were removed from log4net.
That's why even in CF 2.0, it doesn't work too.

Atiz

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Customize DataContractSerializer to use class name as tag nameinstead of base class name + type attribute Achim Domma Microsoft C# .NET 1 14th Aug 2008 10:19 AM
Make sure that the class defined in this code file matches the 'inherits' attribute, and that it extends the correct base class (e.g. Page or UserControl). murl Microsoft ASP .NET 0 27th Mar 2007 11:30 PM
Question about the word Attribute in attribute class names KJ Microsoft C# .NET 2 15th Sep 2006 07:02 PM
Base class property Attribute not applied to derived class propert =?Utf-8?B?RGF2aWQgTA==?= Microsoft Dot NET Framework 0 9th Mar 2005 09:53 PM
Class attribute with asp controls E. Zackatackali Microsoft ASP .NET 2 19th Feb 2005 11:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:48 PM.