title: TFS 2015: Publish artifact - "A task was canceled"
body: <p>Since shortly, I receive &quot;A task was canceled&quot; when running the build task &quot;Publish artifact&quot;. The tfs Server is running for a view weeks now and I never had problems with these tasks.</p>
  <p>I fixed this issue once with deleting the build output Folder but unfortunately this &quot;workaround&quot; is not working anymore. I tried to change the artifact name in the hope that this could change something... Nothing helped.</p>
  <p>Log file output:</p>
  <blockquote>
  <p>2016-04-22T13:04:55.6060280Z Set workingFolder to default: C:\agent\tasks\PublishBuildArtifacts\1.0.26</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]check path :</p>
  <p>C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]set resource file to:</p>
  <p>C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]system.culture=en-US</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]load strings from:</p>
  <p>C:\agent\tasks\PublishBuildArtifacts\1.0.26\task.json</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]load loc strings from:</p>
  <p>C:\agent\tasks\PublishBuildArtifacts\1.0.26\strings\resources.resjson\en-
  US\resources.resjson
  2016-04-22T13:04:56.0896280Z ##[debug]system.hosttype=build</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]PathtoPublish=C:\agent_work\3\a</p>
  <p>2016-04-22T13:04:56.0896280Z ##[debug]check path : C:\agent_work\3\a</p>
  <p>2016-04-22T13:04:56.1052280Z ##[debug]ArtifactName=MyArtifact</p>
  <p>2016-04-22T13:04:56.1052280Z ##[debug]ArtifactType=Container</p>
  <p>2016-04-22T13:04:56.1052280Z ##[debug]TargetPath=\my\share\My Artifact\My Artifact_2.3.16113.06 2016-04-22T13:04:56.2456280Z</p>
  <p>Max Concurrent Uploads 2, Max Creators 1</p>
  <p>2016-04-22T13:04:56.3392280Z Found 61 files to upload.</p>
  <p>2016-04-22T13:04:56.3704280Z Files found locally 61,</p>
  <p>2016-04-22T13:04:56.3704280Z Files evaluated 0,</p>
  <p>2016-04-22T13:04:56.3704280Z Files left to evaluate 61.,</p>
  <p>2016-04-22T13:04:56.3704280Z Files created without upload 0,</p>
  <p>2016-04-22T13:04:56.3704280Z Files uploaded 0</p>
  <p>2016-04-22T13:04:56.3704280Z Files left to process 61</p>
  <p>2016-04-22T13:04:56.3704280Z ---------------------------</p>
  <p>2016-04-22T13:04:57.7588280Z Start: UploadArtifact</p>
  <p>2016-04-22T13:04:57.7588280Z ##[error]A task was canceled.</p>
  <p>2016-04-22T13:04:57.7588280Z End: UploadArtifact</p>
  </blockquote>
  <p>Has anyone experienced something like this? Does anyone has an idea how to solve this?</p>
  <p>Thanks a lot for any</p>