2
Vote

UnauthorizedAccessException When Building Source-Controlled Projects

description

When building source-controlled projects that have conceptual topics, DocProject may copy read-only files into the buildhelp\assembler\DdueXml working folder. The next build will fail while preparing the target folders since DdueXml cannot be deleted while it contains read-only files.
 
Original discussion and temporary workaround:
http://www.codeplex.com/DocProject/Thread/View.aspx?ThreadId=29857

comments

harikrishnan wrote Mar 17, 2009 at 7:32 PM

Hi dev,

I get the following error while building conceptual help doc.

"D:\TFSTempFolder\ADAMS_Project\ACA R.5\BuildType\TFSBuild.proj" (EndToEndIteration target) (1) ->
"D:\TFSTempFolder\ADAMS_Project\ACA R.5\BuildType\TFSBuild.proj" (CoreCompile target) (1:2) ->
"D:\TFSTempFolder\ADAMS_Project\ACA R.5\BuildType\TFSBuild.proj" (CompileConfiguration target) (1:3) ->
"D:\TFSTempFolder\ADAMS_Project\ACA R.5\BuildType\TFSBuild.proj" (CompileSolution target) (1:4) ->
"D:\TFSTempFolder\ADAMS_Project\ACA R.5\Sources\Source\ADAMS\ACA.sln" (default target) (2) ->
"D:\TFSTempFolder\ADAMS_Project\ACA R.5\Sources\Source\ADAMS\ACAHelp\ACAHelp.csproj" (default target) (26) ->
(CoreBuildHelp target) ->
C:\Program Files\Dave Sexton\DocProject\bin\DaveSexton.DocProject.targets(40,5): error : Access to the path '001e5d68-74d2-bb63-2849-84cc6667e0da.htm' is denied.

any help i also incorporated your code to de-flag readonly.. but i get same issue..

harikrishnan wrote Mar 17, 2009 at 8:22 PM

Thanks its resloved i used the code provided to run in recursive..