Re: Help with exception
Chris Fouts <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
I have admin rights to the machine. I installed NAnt in C:\Program Files\NAnt\, which means I have the nant-0.91-alpha2 directory under that. Interestingly enough, I can run it with .NET 4.0 in a Windows 7 lab machine, as Administrator. -chris From: Ryan Boggs [mailto:[email protected]] Sent: Tuesday, May 03, 2011 12:27 PM To: Chris Fouts Cc: [email protected] Subject: Re: [NAnt-users] Help with exception Known issue unfortunately. It's related to the new security model in .net 4, which I have been unable to reproduce on three different machines. This is the first report that I remember that had this error on XP. It's a company machine/laptop? What rights do you have on that machine? Where did you unzip nant to? What directory? Thanks, Ryan On May 3, 2011, at 9:03 AM, Chris Fouts <[email protected]<mailto:[email protected]>> wrote: I have MS .NET framework 4.0 From: Chris Fouts [mailto:[email protected]] Sent: Tuesday, May 03, 2011 12:00 PM To: [email protected]<mailto:[email protected]> Subject: [NAnt-users] Help with exception I just installed NAnt on my XP-based company laptop. When I run it I get the following. Any help? I have v0.91-alpah2 (latest from Sourceforge). Unhandled Exception: System.TypeInitializationException: The type initializer fo r 'NAnt.Console.ConsoleStub' threw an exception. ---> System.Security.SecurityEx ception: Request for the permission of type 'System.Security.Permissions.FileIOP ermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c5619 34e089' 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 System.AppDomain.get_BaseDirectory() at log4net.Config.XmlConfiguratorAttribute.Configure(Assembly sourceAssembly, ILoggerRepository targetRepository) at log4net.Core.DefaultRepositorySelector.ConfigureRepository(Assembly assemb ly, ILoggerRepository repository) at log4net.Core.DefaultRepositorySelector.CreateRepository(Assembly repositor yAssembly, Type repositoryType, String repositoryName, Boolean readAssemblyAttri butes) at log4net.Core.DefaultRepositorySelector.CreateRepository(Assembly repositor yAssembly, Type repositoryType) at log4net.Core.DefaultRepositorySelector.GetRepository(Assembly repositoryAs sembly) at log4net.Core.LoggerManager.GetLogger(Assembly repositoryAssembly, String n ame) at log4net.LogManager.GetLogger(Assembly repositoryAssembly, String name) at log4net.LogManager.GetLogger(Type type) at NAnt.Console.ConsoleStub..cctor() --- End of inner exception stack trace --- at NAnt.Console.ConsoleStub.Main(String[] args) -chris ***This e-mail message is intended only for the above named recipient(s) and may contain information that is sensitive or proprietary. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.*** ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ NAnt-users mailing list [email protected]<mailto:[email protected]> https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ NAnt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nant-users