Nant task exception

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
dnespoli
Posts: 7
Joined: Tue Feb 22, 2005 2:50 pm

Nant task exception

Post by dnespoli » Sun May 29, 2005 7:28 am

Hi,

I followed the install instructions for the nant tasks and I am getting the following error: Any ideas?

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has
been thrown by the target of an invocation. ---> System.TypeInitializationExcept
ion: The type initializer for "NAnt.Core.ConsoleDriver" threw an exception. --->
System.IO.FileLoadException: The located assembly's manifest definition with na
me 'log4net' does not match the assembly reference.
File name: "log4net"
at NAnt.Core.ConsoleDriver..cctor()

=== Pre-bind state information ===
LOG: DisplayName = log4net, Version=1.2.0.30714, Culture=neutral, PublicKeyToken
=b32731d11ce58905
(Fully-specified)
LOG: Appbase = C:\Projects\HorizonSS\FormEngine\$\FormEngine\Sample\Build\nant\
LOG: Initial PrivatePath = lib;lib\net\1.1;lib\net
Calling assembly : NAnt.Core, Version=0.85.1621.0, Culture=neutral, PublicKeyTok
en=null.
===

LOG: Private path hint found in configuration file: lib.
LOG: Publisher policy file is not found.
LOG: Host configuration file not found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v1
.1.4322\config\machine.config.
LOG: Post-policy reference: log4net, Version=1.2.0.30714, Culture=neutral, Publi
cKeyToken=b32731d11ce58905
LOG: Attempting download of new URL file:///C:/Projects/HorizonSS/FormEngine/$/F
ormEngine/Sample/Build/nant/log4net.DLL.
WRN: Comparing the assembly name resulted in the mismatch: Revision Number

--- End of inner exception stack trace ---
at NAnt.Core.ConsoleDriver.Main(String[] args)
--- End of inner exception stack trace ---
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlag
s invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean i
sBinderDefault, Assembly caller, Boolean verifyAccess)
at System.Reflection.RuntimeMethodInfo.InternalInvoke(Object obj, BindingFlag
s invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean v
erifyAccess)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invoke
Attr, Binder binder, Object[] parameters, CultureInfo culture)
at NAnt.Console.HelperArguments.CallConsoleRunner()
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at NAnt.Console.ConsoleSt

dnespoli
Posts: 7
Joined: Tue Feb 22, 2005 2:50 pm

wrong nant version

Post by dnespoli » Sun May 29, 2005 11:25 pm

I had the wrong nant version. Sorry.

Locked