I would look at user permissions
Determine the owner of C:\WINDOWS\Microsoft.NET\Framework\v4.0\mscorlib.dll

Uninstall .NET Framework
Login as the user/owner of mscorlib.dll
Install .NET Framework
 
retry the testcase
 
Mit freundlichen GruBen
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> Date: Wed, 6 Oct 2010 11:57:49 -0400
> From: mweid...@gmail.com
> To: nant-users@lists.sourceforge.net
> Subject: [NAnt-users] NAnt problem after upgrading to .NET 4.0
> 
> I have been using NAnt 0.91-alpha2 on our Server 2003 Standard Edition
> server to manage several of our build tasks, yesterday I upgraded to
> .NET 4.0 via windows update and I am now getting an error when I try
> to run NAnt, even if I open up a console window and just try running
> "nant.exe" with no arguments I am getting an error. I also confirmed
> the same thing is happening on my Windows XP development box. On my
> XP machine I got the following error:
> 
> C:\Program Files\nant-0.91-alpha2\bin>nant.exe
> 
> 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)
> 
> C:\Program Files\nant-0.91-alpha2\bin>
> 
> So everything was working fine using .NET 3.5, but as soon as I
> upgraded to .NET 4.0 I get the error I referenced above. Any
> suggestions on what could be causing this? Also I confirmed that I am
> getting the same error when I tried running the nightly build
> (nant-0.91-nightly-2010-05-12).
> 
> Thank You.
> -- 
> Marcus Weidner
> www.KD8ITX.com
> 
> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
> Spend less time writing and rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> _______________________________________________
> NAnt-users mailing list
> NAnt-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nant-users
                                          
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to