title: TFS: Setup CI deployments for DEV server
body: <p><strong>Goal</strong></p>
  
  <p>Publish successful web app CI builds to IIS dev server.</p>
  
  <p><strong>Current Setup</strong></p>
  
  <p>The associated <em>build definition</em> first <em>copies</em> the <code>\bin</code> folder content to the <code>Build.ArtifactStagingDirectory</code>, then <em>publishes</em> the artifacts of the same path. The name value is <code>drop</code> and the type is <code>Server</code>.</p>
  
  <p>The <em>release definition</em> contains only a <code>Windows Machine File Copy</code> step. It's <code>Source</code> property points to the aforementioned drop folder, and its destination is a UNC address.</p>
  
  <p>Its <code>Artifacts</code> tab is linked to the build definition and <code>Continuous Deployment</code> is enabled for the same source.</p>
  
  <p><strong>Symptom</strong></p>
  
  <p>Deployment status is <code>Rejected</code>. The error returned is <code>The item drop in container 10039 could not be found.</code> See log below:</p>
  
  <p><code>
  2016-12-02T01:46:47.1273383Z Cleaning artifacts directory: C:\agent_work\9ee18c2ab…
  2016-12-02T01:46:47.1612721Z Cleaned artifacts directory: C:\agent_work\9ee18c2ab
  2016-12-02T01:46:47.1692742Z Number of linked artifacts to download: 1 
  2016-12-02T01:46:47.1722775Z Starting artifacts download...
  2016-12-02T01:46:47.2203037Z Downloading linked artifact: VehicleTracking.DevCI...
  2016-12-02T01:46:47.2222969Z Downloading artifact of type: Build
  2016-12-02T01:46:47.2252925Z Created artifact folder C:\agent_work\9ee18c2ab\VehicleTracking.DevCI
  2016-12-02T01:46:47.2712805Z Preparing to get the list of available artifacts from build.
  2016-12-02T01:46:47.4233327Z Preparing to download artifact: drop
  2016-12-02T01:46:47.4593025Z Artifact Type: ServerDrop
  2016-12-02T01:46:47.4613413Z The artifact is of older version: False
  2016-12-02T01:46:47.8273312Z Caching items under 'drop' in the file container...
  2016-12-02T01:46:48.3123751Z 0 placed file(s): 0 downloaded, 0 empty and new, 0 preserved.
  2016-12-02T01:46:48.3273435Z An error occurred during download: System.AggregateException: One or more errors occurred. ---> Microsoft.VisualStudio.Services.FileContainer.ContainerItemNotFoundException: The item drop in container 10039 could not be found.
  </code></p>
  
  <p><strong>Questions</strong></p>
  
  <p>Why is the drop not found? Is there something wrong with the build or something wrong with the release?</p>