locked
Force Sync files that are being used by another process RRS feed

  • Question

  • Sometimes we are getting the following error while trying to sync the code files of a ASP.Net site hosted under IIS:

    "The process cannot access the file <FILE PATH> because it is being used by another process"

    Apparently, this is coming because the files are being used by ASP.Net worker process. Is there any way to force the sync service to synchronize these files?

    TIA

    • Moved by Max Wang_1983 Thursday, April 21, 2011 12:38 AM forum consolidation (From:SyncFx - Technical Discussion [ReadOnly])
    Monday, September 14, 2009 3:09 PM

Answers

  • Are you using the File Sync Provider? The sync engine itself has no way of helping you force update a file. You may want to look at a way to store them elsewhere, then run a utility after sync that stops the IIS service, copies over the files from this temp location, then starts the service.
    Tuesday, September 22, 2009 7:44 PM
    Moderator