Deployment Issue: Failed to Copy File


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Hey Dustin!

You are right...there was a user who has kept open the .application file.  No answer from her, so I will wait on her for further information as to why this may be happening (stalled installation, error popup, etc.).  Appreciate your help.

I would defaintely recommend precompiling your application rather than just deploying it as is

Btw, I am not sure what you mean by this.  I will do a little research to figure this out.  One-click deployment (Windows Forms) has been quite useful, so far.  Since it is not really broken, I am not sure what you suggest would be an enhancement.

Regards,
Bill

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Hi Bill,

It looks like your web application was simply in use whenever you went to deploy and (as such) the .application file couldn't be overwritten or cleared.

I would definitely recommend precompiling your application rather than just deploying it as is (which is what it looks like you are doing.) This should not only resovle the issue you are having, but will make your web application run much faster.

To precompile, you will add a call to aspnet_compiler.exe within the post-build of your project. Aspnet_compiler.exe is distributed with .net and can be set to clear out the destination directory before deploying, not to mention the greater benefit of making your web application run a lot faster. There is a ton of info out there about using aspnet_compiler.exe out on msdn and elsewhere.

Here is an example of a typical call to aspnet_compiler.exe in the post build of one of our web projects:

"C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_compiler.exe" /p "$(SolutionDir)YourWebsite" /v / /f //127.0.0.1/c$/Inetpub/YourWebsite

The /p specifies the path to your solution, the /v identifies the virtual directory for the destination, and the /f signifies that the destination should be cleared before deployment.

Hope it helps Smile,

Dustin

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I have a number of successful builds behind me.  Suddenly, I get this error output when deploying recent changes in my application:

Error 1 Failed to copy file 'C:\Aspire Projects\AspireSF\AspireSF\bin\Debug\app.publish\AspireSF.application' to '\\Spmonroe\Monroe\Deployment\AspireSF\AspireSF.application'. Unable to add 'AspireSF.application' to the Web site.  The file 'AspireSF.application' already exists in this Web site.  1 1 Aspire.SF

When I actually look at the folder that VS2008 sticks out there, it is full...nothing missing.  All users are updating properly.

Why am I getting this error?

Thanks,
Bill

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search