Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6541975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:10:13+00:00 2026-05-25T11:10:13+00:00

Total newbie question. I am trying to run a Nant script on a build

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:10:13+00:00Added an answer on May 25, 2026 at 11:10 am

    @TK has the answer here, I believe, though it may not be as simple as whether or not nant is running from a network drive.

    I have had a similar issue as @Aidan. It turns out that I had copied the nantcontrib (v .86) assemblies to my build system in such a way that Windows 7 restricted access to the nantcontrib assemblies. To fix this, I first copied the nantcontrib zip file to my build VM, then overwrote the blocked assemblies with the contents of the .zip. Windows 7 saw that the files were coming from the local system (rather than from whatever untrusted source I had copied from originally) and it unblocked the assemblies.

    There is probably a more direct means of trusting the assemblies (such as @TK’s link), but this worked for me.

    If you see this error again, look for two things:

    First, Nant (v .91 alpha 2) does a decent job reporting exactly what the error is. I saw the same error as @Adian, along with a complete error stack, and finally this information (emphasis mine):

    The assembly or AppDomain that failed was: NAnt.Contrib.Tasks,
    Version=0.86.3319.0, Culture=neutral, PublicKeyToken=null The method
    that caused the failure was: NAnt.Core.Task
    CreateChildTask(System.Xml.XmlNode)
    The Zone of the assembly that
    failed was: Internet

    The Url of the assembly that failed was:
    file:///C:/Program Files (x86)/NAntBuilder
    2/nantcontrib/bin/NAnt.Contrib.Tasks.dll

    Second, look at the property page of the offending assembly (in my case, Nant.Contrib.Tasks.dll). If the file has been copied from an untrusted source, you will see an “Unblock” button in the properties section (beneath Advanced…) along with a note which stated that the files had come from an untrusted source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Total newbie question but this is driving me mad! I'm trying this: myInt =
This is a total newbie question, so thanks in advance. I'm trying to get
I know this is a total newbie question, but the answer may not be
I am not a total newbie but I am trying to install modules for
Total newbie question here...Today while trying to calculate sum of a list of integers(actually
Total newbie question, but I cant figure out what im doing wrong. I want
first of all, sorry if that question is dumb but I´m a total newbie
This is a total newbie question, but I wonder if someone could assist with
A total newbie question I know. I'm sing Zend framework, and sending an array
Excuse my total newbie question but how do I convert: [<Location: London>] or [<Location:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.