Nant failing with bad permissions on build server

Viewed 6674

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?

5 Answers

When you download NAnt, you have to right click on the zip file (before extracting evertything), then properties, and click on unblock file. Then extract everything and it will work.

Related