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

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 thoughts on “Could not write lines to file FileListAbsolute.txt. Access to the path is denied.”

  1. 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.

  2. 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 Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>