You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by Dominik Psenner <dp...@gmail.com> on 2013/08/01 23:29:33 UTC

Re: Build failed in Jenkins: log4net-trunk-build #1

The last few lines indicate a windows 7 security related issue with 
nant. I've run into this a few time and there's already an answer on 
stackoverflow:

http://stackoverflow.com/questions/8605122/how-do-i-resolve-configuration-errors-with-nant-0-91

And yes, believe it or not, on windows 7 you have to open the properties 
on a zip file and click on a button to be able to execute its extracted 
contents..

Stefan, I hope this helps.

Cheers,
Dominik

On 07/27/2013 03:35 AM, Apache Jenkins Server wrote:
> See <https://builds.apache.org/job/log4net-trunk-build/1/>
> [...]
> Executing command: cmd.exe /C ""F:\hudson\tools\nant-0.92\bin\NAnt.exe -buildfile:log4net.build && exit %%ERRORLEVEL%%""
> [log4net-trunk-build] $ cmd.exe /C '"F:\hudson\tools\nant-0.92\bin\NAnt.exe -buildfile:log4net.build && exit %%ERRORLEVEL%%"'
> log4net:ERROR XmlConfiguratorAttribute: Exception getting ConfigurationFileLocation. Must be able to resolve ConfigurationFileLocation when ConfigFile and ConfigFileExtension properties are not set.
> 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.CodeAccessPermission.Demand()
>     at System.AppDomainSetup.VerifyDir(String dir, Boolean normalize)
>     at log4net.Config.XmlConfiguratorAttribute.ConfigureFromFile(Assembly sourceAssembly, 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 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 type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
>     at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet)
>     at System.Security.CodeAccessPermission.Demand()
>     at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
>     --- End of inner exception stack trace ---
>     at System.Configuration.BaseConfigurationRecord.CheckPermissionAllowed(String configKey, Boolean requirePermission, Boolean isTrustedWithoutAptca)
>     at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)
>     at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)
>     at System.Configuration.ConfigurationManager.GetSection(String sectionName)
>     at NAnt.Console.ConsoleStub.Framework.GetRuntimeFramework()
>     at NAnt.Console.ConsoleStub.Main(String[] args)
> Build step 'Execute NAnt build' marked build as failure

AW: Build failed in Jenkins: log4net-trunk-build #1

Posted by Dominik Psenner <dp...@gmail.com>.
>-----Ursprüngliche Nachricht-----
>Von: Stefan Bodewig [mailto:bodewig@apache.org]
>Gesendet: Freitag, 2. August 2013 07:57
>An: Log4NET Dev
>Betreff: Re: Build failed in Jenkins: log4net-trunk-build #1
>
>On 2013-08-01, Dominik Psenner wrote:
>
>> The last few lines indicate a windows 7 security related issue with
>> nant.
>
>Yes, I know, I've already told our infra guys.
>
>> I've run into this a few time
>
>Same here:
>
><http://stefan.samaflost.de/blog/en/Apache/Log4Net/working_on_the_1.2.
>11_release.html>
>
>:-)
>
>Thanks

Nothing there to thank me for. I'm glad you're taking care of this! ;-)

Cheers


Re: Build failed in Jenkins: log4net-trunk-build #1

Posted by Stefan Bodewig <bo...@apache.org>.
On 2013-08-01, Dominik Psenner wrote:

> The last few lines indicate a windows 7 security related issue with
> nant.

Yes, I know, I've already told our infra guys.

> I've run into this a few time

Same here:

<http://stefan.samaflost.de/blog/en/Apache/Log4Net/working_on_the_1.2.11_release.html>

:-)

Thanks

        Stefan