Thursday, 31 August 2006
Security Engineering
It's a great book, go get it!
Posted by at 2:29 PM in General
It's a great book, go get it!
Posted by at 2:29 PM in General
Thanks to Simon Horrell and Brock for getting to the bottom of this.
Posted by at 9:09 AM in Net
Thanks to Michael Koltachev for pointing this out on the VSTS forums.
Posted by at 10:09 AM in Net
I've been using Team Build to build projects and recently kept getting "Access is denied." on files in either a project's obj directory or in the bin directory. This didn't happen for all the projects within a solution, just one or two. Checking the security within the build server showed that all the directories for all the projects had the same security settings. It took me a while to figure out what was happening!
Some time during the lifetime of the project Visual Studio had crashed . I had some projects that were in the solution but had not been added to source control correctly. To fix this I went through and added the folders containing the projects to source control, then checked everything in. This was the mistake. When I added the folder it also meant I added the binary files, i.e. the files in the obj and bin folders. During a build the buildserver checks out the files defined in the workspace mappings, including the binaries that I had now added. These files are checked out as read-only. Of course, when the project was built, as the binaries were read-only they could not over-written so the build was failing.
Deleting the binaries from source control fixed the problem. And the moral of the story is, don't put anything into source control that wil be re-built as part of the standard project build!
Posted by at 11:10 AM in Net