Bugs item #3415420, was opened at 2011-09-29 09:54 Message generated for change (Comment added) made by rmboggs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3415420&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core Group: 0.90-beta1 Status: Open Resolution: None Priority: 5 Private: No Submitted By: rstackhouse (rstackhouse) Assigned to: Ryan Boggs (rmboggs) Summary: Cannot run 0.91 Beta 1 Initial Comment: When I try to run NAnt 0.91 Beta 1, I get an error that looks similar to the one at https://sourceforge.net/tracker/index.php?func=detail&aid=3383872&group_id=31650&atid=402868 C:\>nant log4net:ERROR XmlConfiguratorAttribute: Exception getting ConfigurationFileLocat ion. Must be able to resolve ConfigurationFileLocation when ConfigFile and Confi gFileExtension properties are not set. System.Security.SecurityException: Request for the permission of type 'System.Se curity.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMa rk& stackMark, Boolean isPermSet) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, S tackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.AppDomainSetup.VerifyDir(String dir, Boolean normalize) at log4net.Util.SystemInfo.get_ConfigurationFileLocation() at log4net.Config.XmlConfiguratorAttribute.ConfigureFromFile(Assembly sourceA ssembly, 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.Security.SecurityException: Request for Configuratio nPermission failed while attempting to access configuration section 'nant'. To a llow all callers to access the data for this section, set section attribute 'req uirePermission' equal 'false' in the configuration file where this section is de clared. ---> System.Security.SecurityException: Request for the permission of ty pe 'System.Configuration.ConfigurationPermission, System.Configuration, Version= 4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMa rk& stackMark, Boolean isPermSet) at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, S tackCrawlMark& stackMark) at System.Security.CodeAccessPermission.Demand() at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) --- End of inner exception stack trace --- at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String co nfigKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Bool ean requestIsHere, Object& result, Object& resultRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ClientConfigurationSystem.System.Configuration.Intern al.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at NAnt.Console.ConsoleStub.Framework.GetRuntimeFramework() at NAnt.Console.ConsoleStub.Main(String[] args) ---------------------------------------------------------------------- >Comment By: Ryan Boggs (rmboggs) Date: 2011-09-29 16:59 Message: If you can please do me a favor, in the NAnt.exe.config file in the configSections, add 'requirePermissions="False" to both the nant and log4net sections and see if that works. Posted on Pastebin for better visual: http://pastebin.com/wbmtBS8p ---------------------------------------------------------------------- Comment By: rstackhouse (rstackhouse) Date: 2011-09-29 14:36 Message: I forgot to mention I'm running 64 bit Windows 7. Don't know if that makes a difference or not. ---------------------------------------------------------------------- Comment By: Ryan Boggs (rmboggs) Date: 2011-09-29 10:50 Message: Thanks for providing this level of detail. I will look into this shortly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=3415420&group_id=31650 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers