Paul,
 
Your build machine probably has a more recent version of the .NET Framework (eg. 2.0) installed, than the machine on which you tried to run NAnt.
 
By default, NAnt will run on latest supported CLR (which is .NET Framework 2.0 / Mono 2.0 profile), and build assemblies targeting that CLR. But this can be easily customized.
 
 
Hope this helps,
 
Gert
----- Original Message -----
Sent: Friday, June 23, 2006 2:03 AM
Subject: [NAnt-users] NAnt won't run: System.BadImageFormatException

Hi,

 

I just did a build of nant, and it worked fine on the machine I built it on, then I copied the folder to another machine and when I try to run NAnt, I get the following dialog box that pops up (both NAnt.exe files are the same size):

 

 

Strong name validation failed for assembly ‘C:\nant\bin\NAnt.exe’.  The file may have been tampered with or it was partially signed but not fully signed with the correct private key.

 

 

Followed by this exception:

 

Unhandled Exception: System.BadImageFormatException: The format of the file 'NAnt.exe' is invalid.

File name: "NAnt.exe"

 

 

 

Am I missing a step when building nant, ie. Signing it somehow? 

 

- Paul


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to