hmmm... I don't seem to have any problem. What framework is your nant
targeted for? What does the output look like?

When I run from my cygwin env. I get this:

[EMAIL PROTECTED] /cygdrive/c/src/sf.net/nant.local
$ bin/nant
NAnt 0.85 (Build 0.85.1447.0; net-1.0.win32; nightly; 12/18/2003)
Copyright (C) 2001-2003 Gerry Shaw
http://nant.sourceforge.net

Buildfile: file:///c:/src/sf.net/nant.local/NAnt.build
Target(s) specified: test
     [echo] Using 'net-1.0' framework on 'win32' platform.
<...>
BUILD SUCCEEDED

Total time: 61.2 seconds.


[EMAIL PROTECTED] /cygdrive/c/src/sf.net/nant.local
$

Are you using a mono targeted version? What directory are you executing
from? The security exception sounds more like you are executing from a
network drive.

As far as I understand how cygwin executes programs, win32 programs that is,
is that it just passes them to the win32 startprocess api. This means that
the only things that are really affected by cygwin are the environment
variables, path, and arguments. There is a possibility that cygwin is
messing with environment stuff that is affecting the framework runtime, but
I really doubt it.

----- Original Message ----- 
From: "Helmut Dipper" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 30, 2004 7:08 AM
Subject: [Nant-users] executing nant in a cygwin-bash environment


> Hello,
>
> my system is Windows NT 4.0 SP6
> my Microsoft .NET Framework is 1.0
>
> I want to execute nant-0.8.4 in following environment:
> bash (unix-like shell) from cygwin
> and get
>
> Unhandled Exception: System.Security.Policy.PolicyException: Execution
> permission cannot be acquired.
>
> Using the cancel-button the debugger delivers:
>
> Microsoft (R) Common Language Runtime Test Debugger Shell Version
1.0.3705.0
> Copyright (C) Microsoft Corporation 1998-2001. All rights reserved.
>
> (cordbg) a 0x32a
> Process 810/0x32a created.
> Warning: couldn't load symbols for
> c:\win_nt\microsoft.net\framework\v1.0.3705\mscorlib.dll
> [thread 0x36f] Thread created.
> Unable to  determine existence of prolog, if any
> [thread 0x56d] Thread created.
> [thread 0x36f] Unhandled exception generated: (0x00f0e5c4)
> <System.Security.Policy.PolicyException>
>   _className=<null>
>   _exceptionMethod=<null>
>   _exceptionMethodString=<null>
>   _message=(0x00f0e604) "Execution permission cannot be acquired."
>   _innerException=<null>
>   _helpURL=<null>
>   _stackTrace=<null>
>   _stackTraceString=<null>
>   _remoteStackTraceString=<null>
>   _remoteStackIndex=0x00000000
>   _HResult=0x80131418
>   _source=<null>
>   _xptrs=0x00000000
>   _xcode=0xe0434f4d
>
> Thread 0x36f R
> (cordbg)
>
> If I execute nant in a Windows command prompt
> it runs very well.
> Why is there a difference between this two environments?
>
> Best regards
> Helmut Dipper



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to