I am trying to compile a vb.net solution using a number of references to compiled resources on a mapped drive. My solution task is failing with the following (first bit of the error message below):
Error resolving module references of 'Z:\Framework\Archive\1.1.2.0\Framework.Data.Utilities.dll'.:NAnt.Core.BuildException: Error resolving module references of 'Z:\Framework\Archive\1.1.2.0\Framework.Data.Utilities.dll'. ---> System.Security.Policy.PolicyException: Required permissions cannot be acquired.
Server stack trace:
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean
stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence security
Evidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at NAnt.VSNet.ReferencesResolver.AppendReferencedModulesLocatedInGivenDirectory(String moduleDirectory, String moduleName, Hashtable& allReferences, Hashtable& unresolvedReferences) in c:\nant-0.85-rc1\src\NAnt.VSNet\ReferencesResolver.cs:line 69
The solution compiles fine from VS.Net and the mapped drive has full access for everyone. I have tried the following:
1. Remove security.config, enterprisesec.config as per http://www.dotnet247.com/247reference/msgs/36/184391.aspx
2. Clear out C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET Files
Any Ideas?
Note: I am using a fairly standard solution task:
<solution
configuration="Debug"
solutionfile="${build.src.dir}\MySolution.sln"
outputdir="${build.bin.dir}">
<webmap>
<map url="${web.projecturl}" path="${web.projectpath}" />
</webmap>
</solution>
****************************************************************
This email and any attachments may contain confidential, private or legally
privileged information and may be protected by copyright. You may only use it
if you are the person(s) it was intended to be sent to and if you use it in an
authorised way. No one is allowed to use, review, alter, transmit, disclose,
distribute, print or copy this email without appropriate authority.
If you are not the intended addressee and this message has been sent to you
by mistake, please notify the sender immediately, destroy any hard copies of
the email and delete it from your computer system network. Any legal privilege
or confidentiality is not waived or destroyed by the mistake.
Opinions in this email do not necessarily reflect the opinions of the
Department of Justice and Attorney-General or the Queensland Government.
It is your responsibility to ensure that this email does not contain and is not
affected by computer viruses, defects or interferences by third parties or
replication problems.
****************************************************************
