Microsoft KB Archive/274057

= PRB: Visual InterDev &quot;Copy Changed Files Only&quot; Does Not Copy as Expected =

Article ID: 274057

Article Last Modified on 10/27/2001

-

APPLIES TO


 * Microsoft Visual InterDev 6.0 Standard Edition

-



This article was previously published under Q274057



SYMPTOMS
When you try to copy a Web application in local mode and select Copy changed files only, no files are copied, even though you have modified the files since the last deployment.



CAUSE
Visual Interdev uses the file creation time, rather than the time of the last modification, to determine which files to copy.



RESOLUTION
To work around this problem, either modify the file name or add a file to the site. This updates the creation time, and the copy succeeds as expected.

Because Visual InterDev only checks to ensure that the site is a copy of the master, it is best to use an application such as Microsoft Visual SourceSafe to check versions.



Steps to Reproduce the Behavior
 Create a new project. Add an Active Server Pages (ASP) page named Page1.asp. Modify the page, and click Save All. Switch to local mode. Modify the page again, and click Save All. Check the Page1.asp file that is located in the. _Local\_vti_cnf folder, and compare the _vti_timelastmodified parameter with the actual time that you last saved or modified the file. They do not match. If they do match the first time, then repeat steps 5 and 6, and they will no longer match.</li> Deploy the application to another server. To do this, perform the following steps: <ol style="list-style-type: lower-alpha;"> From the Project menu, click Web Project.</li> Click Copy Web Application. This creates a new application on the remote server. Do not click Copy changed files only and Add to existing web project.</li></ol> </li> While you are still in local mode, modify the file again, and click Copy Web Application again. Click Copy changed files only, and then click Add to existing web project. You receive the following error message:

The web application was not copied successfully. No files have changed since you last published to destination.

</li></ol>

<div class="references_section">