Re: nant-0.91-alpha1 Build & Windows 7/2008
Darren Syzling <[email protected]>
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <0F2F0B81A43AAC4B97FF499920A2EF731E55606523@34093-MBX-C14.mex07a.mlsrvr.com> |
The 0.91-nightly-2010-05-12 build didn't work for me.
However if I force the runtime to .NET 4 within the NAnt.exe.config file, this seems to clear the problem:
<startup>
<!-- .NET Framework 4.0 -->
<requiredRuntime version="v4.0.30319" />
<!-- .NET Framework 2.0 -->
....
Darren Syzling
mailto:[email protected]
www.optial.com<http://www.optial.com>
------------------------------------------------------------------------------------------------------------------------
This message contains information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments without retaining a copy.
From: Ben Floyd [mailto:[email protected]]
Sent: 16 June 2010 16:03
To: [email protected]
Subject: Re: [NAnt-users] nant-0.91-alpha1 Build & Windows 7/2008
I also had the same problem and luckily I had a nightly from a few days ago that did not throw the error. It was introduced very recently. NAnt-0.91-nightly-2010-05-12 does not have this issue.
On Tue, Jun 15, 2010 at 6:08 PM, Scott Jeslis <[email protected]<mailto:[email protected]>> wrote:
...also on one machine I'm developing 4.0 apps using log4net that are creating log files, consoles, etc.
Scott Jeslis
Senior Software Engineer/Team Lead
From: Scott Jeslis [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, June 15, 2010 6:07 PM
To: Chris Taylor
Cc: [email protected]<mailto:[email protected]>
Subject: Re: [NAnt-users] nant-0.91-alpha1 Build & Windows 7/2008
Chris we tried running the Nant.exe as administrator with no luck. Running Nant 9.0 with Framework 3.5 on
the same machine does not seem to have an issue.
Scott Jeslis
Senior Software Engineer/Team Lead
From: Chris Taylor [mailto:[email protected]<mailto:[email protected]>]
Sent: Tuesday, June 15, 2010 6:01 PM
To: Scott Jeslis
Cc: <[email protected]<mailto:[email protected]>>
Subject: Re: [NAnt-users] nant-0.91-alpha1 Build & Windows 7/2008
Does the user executing have prilidges to read/write?
Sent from my iPhone
On Jun 15, 2010, at 5:25 PM, "Scott Jeslis" <[email protected]<mailto:[email protected]>> wrote:
On two separate machines were trying simply to run nant.exe and were getting the following TypeInitializationException. The .90 build works fine but we are trying to build VS2010 solutions using the 4.0 MS Framework. Anyone come across this?
C:\Users\sjeslis\Documents\nant-0.91-alpha1-bin\nant-0.91-alpha1\bin>nant
Unhandled Exception: System.TypeInitializationException: The type initializer for 'NAnt.Console.ConsoleStub' threw an exception. ---> 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.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark& 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 assembly, ILoggerRepository repository)
at log4net.Core.DefaultRepositorySelector.CreateRepository(Assembly repositoryAssembly, Type repositoryType, String repositoryName, Boolean readAssemblyAttributes)
at log4net.Core.DefaultRepositorySelector.CreateRepository(Assembly repositoryAssembly, Type repositoryType)
at log4net.Core.DefaultRepositorySelector.GetRepository(Assembly repositoryAssembly)
at log4net.Core.LoggerManager.GetLogger(Assembly repositoryAssembly, String name)
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)
Scott Jeslis
Senior Software Engineer/Team Lead
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
NAnt-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
NAnt-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/nant-users
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users