I have noticed that VS.NET sometimes locks assemblies after building them. I have had problems where a build fails because the assembly could not be deleted (as in a clean operation). I don't see this problem if I'm using the command line (i.e. devenv.com). Don't know that this VS.NET behavior is related but it may help you get some insight into your problem.
-- Edwin G. Castro Firing Systems Engineer [EMAIL PROTECTED] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter McEvoy Sent: Wednesday, April 07, 2004 8:17 AM To: [EMAIL PROTECTED] Subject: [Nant-users] Access denied using copy task for ASP.Net project Folks, I am using NAnt to build a number of web projects and then to deploy them to an IIS instance. Occasionally, the deploy fails with a "Cannot Copy '<file>'. Access to the path '<file>' is denied". where <file> is some assembly that needs to be replaced. If I run the deploy again, it will usually work (occasionallt not, but persistance pays off and it will eventually deploy). Now I presume this is something to do with the IIS thread accessing the assembly at the same time that I want to overwrite it. I do not want to set failonerror="false" as I do actually want to replace the files. The same error can happen if I try to delete the remote files before deploying. Is this a "feature" of the so-called MS .Net XCopy deploy functionality? Is there anything that I can do to ensure that the delete and copy will actually work, as this error is not really making life easy for a hands-off build and deploy Cheers Pete ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users