I was using the copy task - or the delete task in the cases where I was deleting before the copy.
I will try the exec task and shell out to xcopy - but if this is a success, it's hiding a problem in the copy and delete tasks... Pete > -----Original Message----- > From: Bob Archer [mailto:[EMAIL PROTECTED] > Sent: 07 April 2004 16:25 > To: Peter McEvoy; [EMAIL PROTECTED] > Subject: RE: [Nant-users] Access denied using copy task for > ASP.Net project > > > Well, > > ASP.Net is actually supposed to make copies of the DLL's in > the bin folder and use the copies. It does this to facilitate > XCOPY deployment and live updates. I'm not sure why you are > having the problem. > > Are you ALWAYS able to copy them using the command line? Have > you tried to use the shell to copy the files using the EXEC task? > > Bob > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Peter McEvoy > Sent: Wednesday, April 07, 2004 11: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/n> ant-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_id=1470&alloc_id=3638&op=click _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users