TFS & Visual Studio ALM – by Neno Loje

(formerly Team System, VSTS)

Could not write lines to file FileListAbsolute.txt. Access to the path is denied.

March 16th, 2011 · 4 Comments · Team Foundation Build (TF Build), Team Foundation Version Control

You receive the following error message:

C:\WINDOWS\Microsoft.NET\Framework\v4.0\Microsoft.Common.targets(3246,9): error MSB3491: Could not write lines to file "obj\Release\abc.Common.vbproj.FileListAbsolute.txt". Access to the path ‘c:\TFS Builds\Sources\abc\obj\Release\abc.Common.vbproj.FileListAbsolute.txt’ is denied.

Possible Cause:

Have you checked in the "obj" and "bin" folders?

To resolve this issue:

  1. Delete the "obj" and "bin" folder in source control.
    (usually those are not checked in)
  2. Delete the "obj" and "bin" folders on your hard disk.
    (they will be re-created during build)


4 Comments so far ↓

  • Lucky

    Thanks …
    Nice info

  • Joe

    I’ve found the reason for this particular error (when building in VS2008 after getting a project from TFS) is because, for whatever reason, a duplicate of files are in the debug folder (ie, duplicate of “vbproj.FileListAbsolute.txt” and “vbproj.GenerateResource.Cache”). Renaming or deleting those two duplicated files gets rid of the error.

  • Howie

    You need to delete the bin and obj folders from within Visual Studio.

  • bhupal

    thanks it is working peroperly with ur suggestion

    and also we can achieve this by removing read only permission to that FileListAbsolute.txt files

Leave a Comment