NANT-LOG4NET ERROR:internet zone

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

NANT-LOG4NET ERROR:internet zone

JOHNHII

Nant will not start after Windows update to Win 2008 server. Get log4net
error. Tried putting name="requirePermission"="false" in nant and log4net
section heads, no change. Any ideas? Thanks JCH

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\cm_backup>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 ---
--
View this message in context: http://old.nabble.com/NANT-LOG4NET-ERROR%3Ainternet-zone-tp34082361p34082361.html
Sent from the NAnt - Users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
NAnt-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NANT-LOG4NET ERROR:internet zone

Bob Archer
> Nant will not start after Windows update to Win 2008 server. Get log4net
> error. Tried putting name="requirePermission"="false" in nant and log4net
> section heads, no change. Any ideas? Thanks JCH

Are you running from the command line? Try to open the cmd window "as administer" and see if that solves it.




>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\cm_backup>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(St
> ring
>  configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
>    --- End of inner exception stack trace ---
> --
> View this message in context: http://old.nabble.com/NANT-LOG4NET-
> ERROR%3Ainternet-zone-tp34082361p34082361.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> NAnt-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
NAnt-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NANT-LOG4NET ERROR:internet zone

JOHNHII
Same result. NANT is apparently trying to connect to a site on the
internet, and the net connection is being blocked.

Thanks JCH

-----Original Message-----
From: Bob Archer [mailto:[hidden email]]
Sent: Wednesday, June 27, 2012 12:21 PM
To: Hawkins, John; [hidden email]
Subject: RE: [NAnt-users] NANT-LOG4NET ERROR:internet zone

> Nant will not start after Windows update to Win 2008 server. Get
> log4net error. Tried putting name="requirePermission"="false" in nant
> and log4net section heads, no change. Any ideas? Thanks JCH

Are you running from the command line? Try to open the cmd window "as
administer" and see if that solves it.




>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\cm_backup>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(St
> ring
>  configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
>    --- End of inner exception stack trace ---
> --
> View this message in context: http://old.nabble.com/NANT-LOG4NET-
> ERROR%3Ainternet-zone-tp34082361p34082361.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> --------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions will include endpoint security, mobile security and the
> latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> NAnt-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
NAnt-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: NANT-LOG4NET ERROR:internet zone

JOHNHII
In reply to this post by Bob Archer
I finally decided to re-install NANT. I deleted NANT from the c:
location, reinstalled on the d:, put the new location in the path.
I can now run NANT from the command-line and Jenkins (as I did last
week).

Thanks for your help! JCH

-----Original Message-----
From: Bob Archer [mailto:[hidden email]]
Sent: Wednesday, June 27, 2012 12:21 PM
To: Hawkins, John; [hidden email]
Subject: RE: [NAnt-users] NANT-LOG4NET ERROR:internet zone

> Nant will not start after Windows update to Win 2008 server. Get
> log4net error. Tried putting name="requirePermission"="false" in nant
> and log4net section heads, no change. Any ideas? Thanks JCH

Are you running from the command line? Try to open the cmd window "as
administer" and see if that solves it.




>
> Microsoft Windows [Version 6.1.7601]
> Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
>
> C:\Users\cm_backup>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(St
> ring
>  configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
>    --- End of inner exception stack trace ---
> --
> View this message in context: http://old.nabble.com/NANT-LOG4NET-
> ERROR%3Ainternet-zone-tp34082361p34082361.html
> Sent from the NAnt - Users mailing list archive at Nabble.com.
>
>
> ----------------------------------------------------------------------
> --------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions will include endpoint security, mobile security and the
> latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> NAnt-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/nant-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
NAnt-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/nant-users
Loading...