I encountered the following error while building C# web project using Nant (release 0.8.4 or the nightly build). It looks like that it tries to load the same assembly twice.
Thank you. -------- The build file ------------- <?xml version="1.0" ?> <project name="test" default="test"> <target name="test"> <solution configuration="release"> <projects> <includes name="C:\TEMP\NantTest\MyCSharpWebProj\MyCSharpWebProj.csproj" /> </projects> </solution> </target> </project> -------- The error emitted by NAnt ------------- NAnt 0.85 (Build 0.85.1447.0; net-1.0.win32; nightly; 18/12/2003) Copyright (C) 2001-2004 Gerry Shaw http://nant.sourceforge.net ... [solution] Starting solution build. ... [solution] - C:\TEMP\NantTest\MyCSharpWebProj\licenses.licx [license] Compiling license file 'C:\TEMP\NantTest\MyCSharpWebProj\licenses.licx' to 'C:\DOCUME~1\xxxx\LOCALS~1\Temp\vhi_vype\MyCSharpWebProj.dll.licenses' using target 'MyCSharpWebProj.dll'. [license] Loading assemblies ... [license] C:\.NETDll\MyCompany.Controls.dll (loaded) [license] C:\.NETDll\MyCompany.DataAccess.dll (loaded) [license] C:\.NETDll\MyCompany.DataAccess.Interfaces.dll (loaded) [license] C:\.NETDll\MyCompany.EE.dll (loaded) [license] C:\.NETDll\MyCompany.EE.Interfaces.dll (loaded) [license] C:\.NETDll\MyCompany.Framework.dll (loaded) [license] C:\.NETDll\MyCompany.Security.Interfaces.dll (loaded) [license] C:\.NETDll\MyCompany.Selection.dll (loaded) BUILD FAILED INTERNAL ERROR System.IO.FileLoadException: Assembly MyCompany.controls.dll already loaded without additional security evidence. File name: "MyCompany.controls.dll" Server stack trace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark) at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark) at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm) at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence) at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTask, String licenseFile) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.DotNet\Tasks\Lice nseTask.cs:line 251 at System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage (MethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IM essage msg, Int32 methodPtr, Boolean fExecuteInContext) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at NAnt.DotNet.Tasks.LicenseGatherer.CreateLicenseFile(LicenseTask licenseTask, String licenseFile) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.DotNet\Tasks\Lice nseTask.cs:line 210 at NAnt.DotNet.Tasks.LicenseTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.DotNet\Tasks\Lice nseTask.cs:line 191 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Task.cs:line 151 at NAnt.VSNet.Resource.CompileLicx() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.VSNet\Resource.cs :line 165 at NAnt.VSNet.Resource.Compile(ConfigurationSettings configurationSettings, Boolean showCommands) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.VSNet\Resource.cs :line 73 at NAnt.VSNet.Project.Compile(String configuration, ArrayList alCSCArguments, String strLogFile, Boolean bVerbose, Boolean bShowCommands) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.VSNet\Project.cs: line 355 at NAnt.VSNet.Solution.Compile(String configuration, ArrayList compilerArguments, String logFile, Boolean verbose, Boolean showCommands) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.VSNet\Solution.cs :line 279 at NAnt.VSNet.Tasks.SolutionTask.ExecuteTask() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.VSNet\Tasks\Solut ionTask.cs:line 335 at NAnt.Core.Task.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Task.cs:line 151 at NAnt.Core.Target.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Target.cs:li ne 217 at NAnt.Core.Project.Execute(String targetName, Boolean forceDependencies) in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Project.cs:l ine 772 at NAnt.Core.Project.Execute() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Project.cs:l ine 734 at NAnt.Core.Project.Run() in C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\tmp16C.tmp\src\NAnt.Core\Project.cs:l ine 797 Please send bug report to [EMAIL PROTECTED] Total time: 45.6 seconds. The information contained in this E-mail is confidential and may be subject to legal privilege. Access to this E-mail by anyone other than the intended recipient is unauthorised. If you are not the intended recipient, you must not use, copy, distribute or disclose the E-mail or any part of its contents or take any action in reliance on it. If you have received this E-mail in error, please notify us immediately by E-mail or telephone. ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers