John, it looks like something in the build process is using code from V1.1 of the framework when you're trying to build a V1.0 assembly (or vice versa). The System.Xml assembly uses types from mscorlib.dll to do its I/O operations. v1.1 of System.Xml needs to bind to v1.1 mscorlib.dll, but v1.0 of mscorlib.dll is loaded into that process - wham you get the security assertion failure.
You need to double-check that all tools involved in the build are using EITHER V1.0 or V1.1 of the frameworks but NOT BOTH. -John http://www.iunknown.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Barstow Sent: Monday, July 28, 2003 11:16 PM To: Nant-Developers (E-mail) Cc: [EMAIL PROTECTED] Subject: [nant-dev] [0.8.3] RC2 buld failures I'm getting the following build failure when attempting to build NAntContrib on the 0.8.3 branch with the 1.0 NET framework. I'd like to fix it before shipping RC2. Any ideas? compile.schemas: [loadtasks] Loading tasks from assembly C:\source\tools\NAntContrib/build/nantcontrib-0 .1.0.0-debug\NAnt.Xsd.Tasks.dll. [xsd] Compiling Schema src\Tasks\MSITask.xsd into Microsoft.NET classes [xsd] Starting 'C:\Program Files\Microsoft.NET\SDK\v1.1\bin\xsd.exe (/nologo src\ Tasks\MSITask.xsd /classes /l:CS /n:NAnt.Contrib.Schemas.MSI /o:C:\source\tools\NAntCon trib/build/nantcontrib-0.1.0.0-debug\Schemas\MSI /u:NAnt.Contrib.Tasks.MSITask)' in 'C: \source\tools\NAntContrib' Writing file 'C:\source\tools\NAntContrib/build/nantcontrib-0.1.0.0-debug\S chemas\MSI\MSITask.cs'. Total time: 16 seconds. BUILD FAILED INTERNAL ERROR System.Security.SecurityException: Request for the permission of type System.Security.P ermissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed. at System.Xml.XmlTextReader..ctor(String url, XmlNameTable nt) at System.Xml.XmlDocument.Load(String filename) at NAnt.Contrib.Tasks.XsdTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.TaskContainer.ExecuteChildTasks() at NAnt.Core.Tasks.IfTask.ExecuteTask() at NAnt.Core.Task.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Target.Execute() at NAnt.Core.Project.Execute(String targetName) at NAnt.Core.Project.Execute() at NAnt.Core.Project.Run() The state of the failed permission was: <IPermission class="System.Security.Permissions.StrongNameIdentityPermission, mscorlib, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" PublicKeyBlob="00000000000000000400000000000000" Name="System.Windows.Forms"/> John C Barstow ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ nant-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-developers