Dominik, Thanks for the suggestions. Right now we are using Nant on a Windows XP VMWare VM. I don't believe XP has an Unblock feature. Is there a way to disable the "LoadTasks" and only have it load when issuing the LoadTask calls in the script?
Thanks Jim -----Original Message----- From: nant-users-boun...@lists.sourceforge.net [mailto:nant-users-boun...@lists.sourceforge.net] On Behalf Of Dominik Guder Sent: Friday, September 16, 2011 3:40 AM To: nant-users@lists.sourceforge.net Subject: Re: [NAnt-users] Getting errors after upgrading to NAnt .90 - Any ideas? Hi James, calling "LoadTasks" is by design. For short: Nant.exe crawls all *Tasks.dll files in its folder and search for Tasks. One question: Did you unblock the downloaded zip file? From nant's issue tracker: "I had this exact same problem. It comes from the assembly not being trusted. Windows 7 will put a flag on downloaded files that the .Net runtime uses to lower access. The fix for this is to open the properties dialog of the .zip file and next to the Security label, click "Unblock". Then, when you extract the files, they wont be restricted. Hopefully this helps." You also can try to run nant in debug mode: nant -debug+ -buildfile:testmail.xml If this doesn't help you might check the assembly loading with fuslogvw.exe and try to find the reason why your assemblies are not loaded. So far Dominik Am 14.09.2011 20:06, schrieb Macdiarmid, James D.: > I upgraded to NAnt .90 and modified the NAnt.Exe.Config to support .NET > Framework 4. Installed the latest Windows SDK. I don ' t understand why > my script is calling the LoadTasks when they are not even in the script. > Anyone know how to fix these errors? > > I ' m running Nant on a simple script to send me a test email , but I ' > m getting the errors below: > > <?xml version="1.0" encoding="utf-8"?> > > <project xmlns="http://nant.sf.net/release/0.90/nant.xsd" name="Main > Build" default="Test"> > > <target name="Test"> > > <mail > > from="james.d.macdiar...@saic.com" > > tolist="james.d.macdiar...@saic.com;" > > subject="Successful Email Test from Build machine using Nant 0.90" > > mailhost=" <my smtp server> " > > /> > > </target> > > </project> > > ================= Errors =============================================== > > C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin>nant -buildfile:testmail.xml > > NAnt 0.90 (Build 0.90.3780.0; release; 5/8/2010) > > Copyright (C) 2001-2010 Gerry Shaw > > http://nant.sourceforge.net > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.CompressionTasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspa > > ces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.CompressionTasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.DotNetTasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspaces\A > > HLTA\3.7.0\Build\nAnt\bin\NAnt.DotNetTasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit1Tasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspaces\A > > HLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit1Tasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit2Tasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspaces\A > > HLTA\3.7.0\Build\nAnt\bin\NAnt.NUnit2Tasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VisualCppTasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspace > > s\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VisualCppTasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.VSNetTasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspaces\AH > > LTA\3.7.0\Build\nAnt\bin\NAnt.VSNetTasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > [loadtasks] Failure scanning > "C:\Workspaces\AHLTA\3.7.0\Build\nAnt\bin\NAnt.Win32Tasks.dll" for > extensions. Could not load file or assembly 'file:///C:\Workspaces\AH > > LTA\3.7.0\Build\nAnt\bin\NAnt.Win32Tasks.dll' or one of its > dependencies. Operation is not supported. (Exception from HRESULT: > 0x80131515) > > BUILD FAILED > > Failed to initialize the 'Microsoft .NET Framework 4.0' (net-4.0) target > framework. > > Invalid element <readregistry>. Unknown task or datatype. > > > > ------------------------------------------------------------------------ ------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs& more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > > > > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users -- The answer to the great question of life, the universe and everything is 42 (Douglas Adams) ------------------------------------------------------------------------ ------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA http://p.sf.net/sfu/rim-devcon-copy2 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users