|
From: Camus, O. <oli...@si...> - 2006-08-25 13:38:01
|
Hello, =20 I had implemented nant for a new project. It's quite fine for our usage. =20 Now, I have to deploy it on Windows Local Network in order to make it usable by all teams members. When we reference Nant.exe from network, it failled (cf end of email): =20 Either we cannot launch Nant from local network ? Nor I have to setup a configuration to allow Nant to be performed from local network? =20 Notice that on local disk, it works fine: =20 >D:\tools_tst\NAnt\bin\NAnt.exe NAnt 0.85 (Build 0.85.2344.0; rc4; 02/06/2006) Copyright (C) 2001-2006 Gerry Shaw http://nant.sourceforge.net <http://nant.sourceforge.net>=20 =20 Buildfile: file:///D:/ccm_wa/AdvSoa/MEDIAHUB-uidd0514/MEDIAHUB/Make/mh.build <file:///D:/ccm_wa/AdvSoa/MEDIAHUB-uidd0514/MEDIAHUB/Make/mh.build>=20 Target framework: Microsoft .NET Framework 2.0 Target(s) specified: dev =20 dev.clean: =20 [delete] Deleting 32 files. =20 dev.debug: =20 create.dir: =20 [echo] Creating directory lib\tmp ... [mkdir] Creating directory 'D:\ccm_wa\AdvSoa\MEDIAHUB-uidd0514\MEDIAHUB\lib\ tmp'. =20 bundles: =20 [csc] Compiling 11 files to 'D:\ccm_wa\AdvSoa\MEDIAHUB-uidd0514\MEDIAHUB\l ib\tmp\bundles.dll'. =20 Thanks for you help, Olivier. =20 =20 >R:\THIRDPARTY_REL-R2.2.0\THIRDPARTY_REL\bin\NAnt0.85\bin\NAnt.exe log4net:ERROR XmlConfigurator: Failed to initialize configuration file watcher for file [R:\THIRDPARTY_REL-R2.2.0\THIRDPARTY_REL\bin\NAnt0.85\bin\NAnt.exe.confi g] System.Security.SecurityException: Request failed. at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException) at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action) at log4net.Config.XmlConfigurator.ConfigureAndWatchHandler..ctor(ILoggerRep ository repository, FileInfo configFile) at log4net.Config.XmlConfigurator.ConfigureAndWatch(ILoggerRepository repository, FileInfo configFile) The action that failed was: LinkDemand The type of the first permission that failed was: System.Security.PermissionSet The Zone of the assembly that failed was: Intranet=20 =20 Unhandled Exception: System.Security.SecurityException: Request for ConfigurationPermission failed while attempting to access configuration section 'nant'. To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared. ---> System.Security.SecurityException: Request for the permission of ty pe 'System.Configuration.ConfigurationPermission, System.Configuration, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a' failed. at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(Stri ng configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) The action that failed was: Demand The type of the first permission that failed was: System.Configuration.ConfigurationPermission The first permission that failed was: <IPermission class=3D"System.Configuration.ConfigurationPermission, System.Configuration, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a" version=3D"1" Unrestricted=3D"true"/> =20 The demand was for: <IPermission class=3D"System.Configuration.ConfigurationPermission, System.Configuration, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a" version=3D"1"Unrestricted=3D"true"/> =20 The granted set of the failing assembly was: <PermissionSet class=3D"System.Security.PermissionSet" version=3D"1"> <IPermission class=3D"System.Security.Permissions.EnvironmentPermission, mscorlib, Version=3D2.0.0.0, Culture=3Dneutral, = PublicKeyToken=3Db77a5c561934e089" version=3D"1" Read=3D"USERNAME"/> <IPermission class=3D"System.Security.Permissions.FileDialogPermission, mscorlib, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Unrestricted=3D"true"/> <IPermission class=3D"System.Security.Permissions.FileIOPermission, mscorlib, Vers ion=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Read=3D"R:\THIRDPARTY_REL-R2.2.0\THIRDPARTY_REL\bin\NAnt0.85\bin\" PathDiscovery=3D"R:\THIRDPARTY_REL-R2.2.0\THIRDPARTY_REL\bin\NAnt0.85\bin= \ "/> <IPermission class=3D"System.Security.Permissions.IsolatedStorageFilePermission, m scorlib, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Allowed=3D"AssemblyIsolationByUser" UserQuota=3D"9223372036854775807" Expiry=3D"9223372036854775807" Permanent=3D"True"/> <IPermission class=3D"System.Security.Permissions.ReflectionPermission, mscorlib, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Flags=3D"ReflectionEmit"/> <IPermission class=3D"System.Security.Permissions.SecurityPermission, mscorlib, Ve rsion=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Flags=3D"Assertion, Execution, BindingRedirects"/> <IPermission class=3D"System.Security.Permissions.UIPermission, = mscorlib, Version=3D 2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Unrestricted=3D"true"/> <IPermission class=3D"System.Security.Permissions.UrlIdentityPermission, mscorlib, Version=3D2.0.0.0, Culture=3Dneutral, = PublicKeyToken=3Db77a5c561934e089" version=3D"1" Url=3D"file:///R:/THIRDPARTY_REL-R2.2.0/THIRDPARTY_REL/bin/NAnt0.85/bin/N= A nt.exe"/ <file:///R:/THIRDPARTY_REL-R2.2.0/THIRDPARTY_REL/bin/NAnt0.85/bin/NAnt.e xe"/>=20 > <IPermission = class=3D"System.Security.Permissions.ZoneIdentityPermission, mscorlib , Version=3D2.0.0.0, Culture=3Dneutral, = PublicKeyToken=3Db77a5c561934e089" version=3D"1" Zone=3D"Intranet"/> <IPermission class=3D"System.Net.DnsPermission, System, = Version=3D2.0.0.0, Culture=3Dn eutral, PublicKeyToken=3Db77a5c561934e089" version=3D"1" Unrestricted=3D"true"/> <IPermission class=3D"System.Drawing.Printing.PrintingPermission, System.Drawing, Version=3D2.0.0.0, Culture=3Dneutral, PublicKeyToken=3Db03f5f7f11d50a3a" version=3D"1" Level=3D"DefaultPrinting"/> </PermissionSet> =20 The assembly or AppDomain that failed was: NAnt, Version=3D0.85.2344.0, Culture=3Dneutral, PublicKeyToken=3Dnull The method that caused the failure was: System.String get_FrameworkVersion() The Zone of the assembly that failed was: Intranet The Url of the assembly that failed was: file:///R:/THIRDPARTY_REL-R2.2.0/THIRDPARTY_REL/bin/NAnt0.85/bin/NAnt.ex e <file:///R:/THIRDPARTY_REL-R2.2.0/THIRDPARTY_REL/bin/NAnt0.85/bin/NAnt.e xe>=20 --- End of inner exception stack trace --- at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(Stri ng configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca) at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& tRuntimeObject) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey, Boolean getLkg, Boolean checkPermission) at System.Configuration.BaseConfigurationRecord.GetSection(String configKey) at System.Configuration.ClientConfigurationSystem.System.Configuration.Inte rnal.IInternalConfigSystem.GetSection(String sectionName) at System.Configuration.ConfigurationManager.GetSection(String sectionName) at System.Configuration.ConfigurationSettings.GetConfig(String sectionName) at NAnt.Console.ConsoleStub.get_FrameworkVersion() at NAnt.Console.ConsoleStub.Main(String[] args) The Zone of the assembly that failed was: MyComputer =20 =20 |