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 7192053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:51:32+00:00 2026-05-28T19:51:32+00:00

I work on an ASP.Net project which we build with VS 2010. We use

  • 0

I work on an ASP.Net project which we build with VS 2010. We use the “Publish” option from the Build menu to publish the application to a folder on our local server.

This works fine for one of our servers – the files copy over correctly, and everything works (we don’t delete the files on the server prior to publishing, because there are extra files that don’t come from VS). However, on our other server, the publish doesn’t seem to work. The DLLs don’t get replaced, which means we have to manually copy over the contents of the /obj/Debug/Package/PackageTmp directory from the solution (which is where VS publishes all files to prior to copying them over).

The times on the server and local machine are both the same – both are synced to the same NTP server on the local network, so this is not the issue.

Is there anything that we can do to force VS to overwrite all the files in the destination directory (without actually deleting the files)?

  • 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-28T19:51:33+00:00Added an answer on May 28, 2026 at 7:51 pm

    I’ve frequently run into this and have come to the conclusion that VS’s publish command is simply broken. Sometimes it works, sometimes not. I’ve even raised some MS Connect issues on it.

    The problem goes back to at least VS 2005, maybe before.

    Usually it boils down to the remote server being slightly ahead in it’s time. However, it looks like you’ve already looked into that. We’ve also seen it fail to publish a changed .aspx page even when the times were identical on the two machines…

    To resolve this, we publish to an empty temporary directory then issue a command to xcopy the files to the real target location. Once the xcopy is complete we clear out the temp directory.

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

Sidebar

Related Questions

i have part of Asp.NET 1.1 project. I work with remote site, which works
I'm coming from a Rails background and doing some work on a ASP.NET project
Our team is developing a rather big ASP.NET web project which initially started in
I have a build process which takes my VS 2008 .NET 2.0 ASP.NET project
Unfortunately, I'm doing some work on a (legacy) project that is build with ASP.NET
I'm thinking about starting work on a fairly large scale .NET or ASP.NET project
The report viewer doesn't seem to work in asp.net projects in VS 2010. You
I'm having some trouble getting log4net to work from ASP.NET 3.5. This is the
What is the recommended way of allowing an ASP.NET application to know which environment
I have a ASP.NET project which relies upon the FreeImage .NET wrapper. This is

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.