Your NAnt installation is still marked as "Internet" since it has been downloaded and you haven't unblocked it. As such it is not allowed to access the local file system.
The easiest approach is to unblock the ZIP before extracting it: http://stefan.samaflost.de/b-media/unblock-zip.png Stefan On 2015-11-08, Gary Gregory wrote: > Pardon my NAnt newbness: > LOG4NET_DIR is E:\temp\rc\log4net-1.2.14 > NANTEXE_PATH is nant.exe > BUILD_FILE is E:\temp\rc\log4net-1.2.14\log4net.build > log4net:ERROR XmlConfiguratorAttribute: Exception getting > ConfigurationFileLocation. Must be able to resolve > ConfigurationFileLocation when ConfigFile and ConfigFileExtension > properties are not set. > System.Security.SecurityException: Request for the permission of type > 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, > Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. > at System.Security.CodeAccessSecurityEngine.Check(Object demand, > StackCrawlMark& stackMark, Boolean isPermSet) > at System.Security.CodeAccessPermission.Demand() > at System.AppDomainSetup.VerifyDir(String dir, Boolean normalize) > at log4net.Config.XmlConfiguratorAttribute.ConfigureFromFile(Assembly > sourceAssembly, ILoggerRepository targetRepository) > The action that failed was: > Demand > The type of the first permission that failed was: > System.Security.Permissions.FileIOPermission > The Zone of the assembly that failed was: > Internet > Unhandled Exception: System.Reflection.TargetInvocationException: Exception > has been thrown by the target of an invocation. ---> > System.Security.SecurityException: Request failed. > at NAnt.Core.Util.AssemblyResolver.Attach() > at NAnt.Core.ConsoleDriver.Main(String[] args) > --- End of inner exception stack trace --- > at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] > arguments, Signature sig, Boolean constructor) > at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, > Object[] parameters, Object[] arguments) > at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags > invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) > at NAnt.Console.ConsoleStub.HelperArguments.CallConsoleRunner() > at NAnt.Console.ConsoleStub.Main(String[] args) > ? > Gary > On Sat, Nov 7, 2015 at 8:32 AM, Stefan Bodewig <bode...@apache.org> wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> log4net 1.2.14 RC2 is available for review here: >> https://dist.apache.org/repos/dist/dev/logging/log4net >> (revision 11058) >> Details of changes since 1.2.14 are in the release notes: >> http://people.apache.org/~bodewig/log4net/site/release/release-notes.html >> The tag is here: >> https://svn.apache.org/repos/asf/logging/log4net/tags/1.2.14RC2 >> (revision 1713091) >> Site: >> http://people.apache.org/~bodewig/log4net/site/ >> Votes, please. This vote will closeno sooner than in 72 hours, 1630 GMT >> 10-Nov 2015 >> [ ] +1 Release these artifacts >> [ ] +0 OK, but... >> [ ] -0 OK, but really should fix... >> [ ] -1 I oppose this release because... >> Thanks! >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.9 (GNU/Linux) >> iEYEARECAAYFAlY+J34ACgkQohFa4V9ri3JX/gCeJ9iScg7122RLfbYm0bRbtobZ >> YCgAniv/xdf0Gcu0L0L6RA2gyUXz5Vow >> =R9ss >> -----END PGP SIGNATURE-----