Home → Resources → Articles

Access to the path FileListAbsolute.txt is Denied Error

(Microsoft .NET,Microsoft ASP.NET,Microsoft Team Foundation Server,MSBuild) by Jason Skowronek on 03/18/2011

Over the past day or so, I have been dealing with a quite elusive and frustratingly evil build problem in one of many web projects in our Team Foundation System build environment. Apparently, though we have a rule to excluded the "obj" folder from our commits, someone on the team "somehow" committed the "obj" folder. This apparently causes havoc when MSBuild attempts to write to various source files that are set read-only. Consequently, when the build process runs, you "may" see the following error in your build summary/log file:

C:\Windows\Microsoft.NET\Framework\v#\Microsoft.Common.targets (#): Could not write lines to file "obj\%CONFIGURATION%)\%PROJECTNAME%.csproj.FileListAbsolute.txt". Access to the path '%MSBUILD_SOURCE_PATH%\obj\%CONFIGURATION%)\%PROJECTNAME%.csproj.FileListAbsolute.txt' is denied.

The solution is simple, delete the "obj" folder from source control, commit the changes, and re-run the build.

Reference

Comments (1)

Guran

4/17/2012 10:59:52 PM
Thanks a lot for this tip. It saved a lot of time for me.
Leave a comment
Name *
Email *
Homepage
Comment

SkoNet provides comprehensive digital consulting services such as: web development, applications development, database design and architecture, business process management, customer relationship management, and many others that help businesses of every size, industry, and geography meet the complex challenge of managing and sharing information on the web. Our skills and expertise in online systems allow us to help customers build applications ranging from simple, single-page web sites to robust enterprise systems.

Online Backup, Ektron Consulting, Ektron Programmer, Ektron Developer, Ektron Partner Utah, Ektron Partner, Ektron Architect, Ektron Hosting, Salesforce.com Consultant Utah, Salesforce.com Partner Utah, Salesforce.com Partner, Salesforce.com Programmer, Salesforce.com Architect, Salesforce.com APEX Programmer