Monday, June 15, 2009

Could not write lines to file is denied. Visual Studio 2005

Error 11 Could not write lines to file "obj\Activities.csproj.FileList.txt". Access to the path 'D:\StarTeam\Activities\obj\Activities.csproj.FileList.txt' is denied. Activities

Issue: As you can see, MSBuild is trying to write to the *.vbproj.FileList.txt file in the \obj folder, but access is denied. If you look at this file on disk, you will notice that it is marked as read-only. No big deal, just turn off the read-only flag. You do this and rebuild, but the build passes. Very good! You go home with a nice case of the "warm fuzzies" and sleep like a baby. In the morning you come in to the office to find that the nightly build broke with the same exception. You look at the *.vbproj.FileList.txt file and it is read-only on the build machine. You scratch your head and let out a expletives and then delete the entire \obj folder. Then the nightly build is run again and if fails again damn it! Oh look, the *.vbproj.FileList.txt file is back to read-only. Sounding familiar yet?


Problem: The build fails because the *.vbproj.FileList.txt file is read-only so MSBuild can't write to it.


Reason: The file is read-only because you checked the \obj folder into source control in SteWhenevernevery you do a Getsourcesoruce control, the files are placed on the drive as read-only. The nightly build is configured to delete the prior run's source code (or should be) and Get from source control prior to building. Therefore every nightly build fails in the same way.


Solution: Delete the \obj folder from source control and check-in the change. That's it.

Tuesday, June 09, 2009

So what is XAMLFest?

XAML its all you want...
Are you excited about WPF but concerned about the learning curve? Have you seen Silverlight but don’t know where to get started? Or are you curious about how tools like Expression Blend help designers and developers deliver great user experiences together? If so, join us at XamlFest!

XAMLfest Online is a five day event hosted by msdev.com and delivered through both live sessions and recorded training. The recorded training can be viewed at any time, but each segment should be watched before you participate in a related live session. The table below should help illustrate how each session relates to another.

>Explore more>

ASP.NET MVC - Sport Facility Booking system

  The project relies on some external service providers. Thus accessing them via their API requires authentication. An API Key need to be su...