TFS 2010 The directory is not empty issue


 

i did many researches on internet trying find out way resolve "directory not empty" issue in past few weeks.

even after running promon.exe nothing frustration want share how away , hope can provide me answer.

so, problem that, when i'm using default template.xaml run build, randomly 2nd or 3rd sequential build, build goes fails because of error message below.

$/teamproject/branches/dev/src/xxx.xxxx.sln ('clean' target(s)) - 1 error(s), 0 warning(s), view log file

c:\program files (x86)\msbuild\microsoft\webdeployment\v10.0\microsoft.webdeployment.targets (794): unable remove directory "obj\release\source". directory not empty.

or "obj\release\tempbuilddir"

so, whenever build failed due  to directory not empty error, under binaries folder @ binaires\release\_publishedwebsites\wdp (web deployment project)\, sub directories not clean delete binaries work flow recursively.

so, put clean task @ wdp .csproject , web site application shown below.

http://msdn.microsoft.com/en-us/library/ms171480(v=vs.100).aspx

then, team build consistently stop giving me directory not empty error.

hope helps resolve issue if run same problem.

right after getting directory not empty issue, submitting 2nd queue new build works fine.

hi john,

did try handle.exe... better create custom activity , use handle.exe kill handles on build resources.

http://www.timstall.com/2009/02/killing-file-handles-but-not-process.html

hope help...

thanks,

mayank


mayank goswami



Archived Forums V  >  Team Foundation Server - Build and release management



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........