Make sure you have the following in your nant.exe.config (the order of
supportedRuntime's is important).
I had similar problems with <nunit2> task and it helped.

    <startup>
        <supportedRuntime version="v1.1.4322" />
        <supportedRuntime version="v1.0.3705" />
    </startup>

Please let me know if it works for you.

Jarek

----- Original Message -----
From: "GUPTA,SACHIN (HP-India,ex3)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, June 08, 2003 12:32 PM
Subject: [Nant-users] nant problem on win2k / .net framework 1.1


> Hi,
>
>
> I try executing Nant latest on win2k/.net framework 1.1, it throws the
> System.TypeInitializationException
>
>
> Unhandled Exception: System.TypeInitializationException:
> The type initializer for "SourceForge.NAnt.ConsoleStub" threw an
exception.
> ---> System.TypeInitializationException:
> The type initializer for "log4net.spi.LoggerManager" threw an exception.
> ---> System.Security.SecurityException:
> Request for the permission of typ
> e System.Security.Permissions.SecurityPermission, mscorlib,
> Version=1.0.5000.0,
> Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
>    at log4net.spi.LoggerManager..cctor()
>
> The state of the failed permission was:
> <IPermission class="System.Security.Permissions.SecurityPermission,
> mscorlib, Ve
> rsion=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
>              version="1"
>              Flags="ControlAppDomain"/>
>
>    --- End of inner exception stack trace ---
>    at log4net.spi.LoggerManager.GetLogger(Assembly domainAssembly, String
> name)
>    at log4net.LogManager.GetLogger(Type type)
>    at SourceForge.NAnt.ConsoleStub..cctor()
>    --- End of inner exception stack trace ---
>    at SourceForge.NAnt.ConsoleStub.Main(String[] args)
>
>
> Can some one tell me the reason for this
>
> Regards
> Sachin
>
>
>
>
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
> thread debugger on the planet. Designed with thread debugging features
> you've never dreamed of, try TotalView 6 free at www.etnus.com.
> _______________________________________________
> Nant-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-users
>



-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to