views:

41

answers:

1

Total newbie question. I am trying to run a Nant script on a build server (very basic script, not doing anything), and it's failing with the error

System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

What should I do to get it running?

A: 

Are you running the Nant script on a network share drive?

If so then you might need to configure the .NET Caspol policy to allow .NET code to be executed on a network share.

Using CasPol to Fully Trust a Share

This link might be able to help you.

TK