Rich,

To be honest VB.NET syntax isn't my strong point, but I think that you
need to use the := when specifying the named property. e.g.:

<Assembly:log4net.Config.DOMConfigurator(ConfigFile:="ConfigFile.xml")>


Nicko

> -----Original Message-----
> From: Rich Dudley [mailto:[EMAIL PROTECTED] 
> Sent: 12 August 2004 20:09
> To: [email protected]
> Subject: New to log4net - specifying config file in AssemblyInfo.vb
> 
> I'm brand new to log4net, so I apologize if this issue has 
> been raised recently.
> 
> I'm using log4net 1.2.0 beta 8 with .NET 1.1 and VB.NET.  The 
> output is a .exe console application.
> 
> I'm trying to specify the log4net config file in AssemblyInfo.vb. 
> Using the following syntax:
> 
> <Assembly: log4net.Config.DOMConfigurator("ConfigFile.xml")> 
> 
> I receive a "Too many arguments to public sub new()' error.
> 
> Using this syntax:
> 
> <Assembly: 
> log4net.Config.DOMConfigurator(ConfigFile="ConfigFile.xml")> 
> 
> I receive a "Name 'ConfigFile' is not declared" error.
> 
> When I use the empty syntax:
> <Assembly: log4net.Config.DOMConfigurator()> 
> 
> Things seem to be OK, but, the Intellisense does list the 
> attributes ConfigFile, ConfigFileExtension and Watch when I 
> open the parentheses.
> 
> I'm too new to tell if this is a bug or if I'm going this 
> wrong.  All help is appreciated.  Thanks!
> 

Reply via email to