Weblinks
Subversion quickstart guide
Written by Harry Zheng   

To get started:
• svn help

Create a new repository:
• svnadmin create c:/svn/projects/
Add existing projects to svn
• svn import MyProject1 File:///C:/svn/projects/Project1/chunk/ -m "Initial import"
• svn list file:///c:/svn/projects/Project1/chunk/

Checkout
• svn checkout file:///c:/projects/Project1/chunk/

Update your working copy

• svn update

Make changes
• svn add
• svn delete
• svn copy
• svn move

Examine your changes
• svn status
• svn diff

Possibly undo some changes
• svn revert

Resolve Conflicts (Merge Others' Changes)
• svn update
• svn resolved

Commit your changes
• svn commit

Last Updated on Friday, 26 February 2010 00:14
 
CCNet Exception: Unused node detected: notification="Always"
Written by Harry Zheng   

Installed CruiseControl.NET-1.5.6804.1 and CruiseControl.Net Server won't start. Here is the detail in server log:

2010-02-19 23:41:15,711 [4:INFO] CruiseControl.NET Server 1.5.6804.1 -- .NET Continuous Integration Server
2010-02-19 23:41:15,711 [4:INFO] Copyright © 2003 - 2010 ThoughtWorks Inc.  All Rights Reserved.
2010-02-19 23:41:15,712 [4:INFO] .NET Runtime Version: 2.0.50727.4927 Image Runtime Version: v2.0.50727
2010-02-19 23:41:15,712 [4:INFO] OS Version: Microsoft Windows NT 6.1.7600.0 Server locale: English (United States)
2010-02-19 23:41:15,712 [4:INFO] Reason: SCM start
2010-02-19 23:41:16,368 [4:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config' to file change watcher collection.
2010-02-19 23:41:16,387 [CCNet Server:INFO] Reading configuration file "C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config"
2010-02-19 23:41:18,359 [CCNet Server:DEBUG] [FileChangedWatcher] Add config file 'C:\Program Files (x86)\CruiseControl.NET\server\ccnet.config' to file change watcher collection.
2010-02-19 23:41:18,421 [CCNet Server:WARN] Configuration does not have any version information - assuming the configuration is for version 1.5
2010-02-19 23:41:18,804 [CCNet Server:ERROR] A fatal error occurred while starting the CruiseControl.NET server
2010-02-19 23:41:18,858 [CCNet Server:ERROR] Exception: Unused node detected: notification="Always"

This is the configuration:
<email ...>
<users>
<user name="Harry Zheng" address="...." group="buildmaster" />
</
 
users>
<
groups>
<
group name="buildmaster" notification="Always" />
</
groups>
</
email>

It looks like notification has been renamed to notifications.

 

Last Updated on Friday, 19 February 2010 23:54
 
ASP.NET MVC 2 RC is available
Written by Harry Zheng   
ASP.NET MVC 2 is a framework for developing highly testable and maintainable Web applications by leveraging the Model-View-Controller (MVC) pattern. The framework encourages developers to maintain a clear separation of concerns among the responsibilities of the application – the UI logic using the view, user-input handling using the controller, and the domain logic using the model. ASP.NET MVC applications are easily testable using techniques such as test-driven development (TDD).

The installation package includes templates and tools for Visual Studio 2008 SP 1 to increase productivity when writing ASP.NET MVC applications. For example, the Add View dialog box takes advantage of customizable code generation (T4) templates to generate a view based on a model object. The default project template allows the developer to automatically hook up a unit-test project that is associated with the ASP.NET MVC application. Because the ASP.NET MVC framework is built on ASP.NET 3.5 SP 1, developers can take advantage of existing ASP.NET features like authentication and authorization, profile settings, localization, and so on.


Download is available:
http://www.microsoft.com/downloads/details.aspx?FamilyID=3b537c55-0948-4e6a-bf8c-aa1a78878da0&displaylang=en

 
MSB3021: The requested operation cannot be performed on a file with a user-mapped section open
Written by Harry Zheng   

MSB3021: Unable to copy file "..\..\..\3rdParty\ReferencedAssemblies\log4net.dll" to "D:\Build\CI\Builds\Current\log4net.dll". The requested operation cannot be performed on a file with a user-mapped section open. in Microsoft.Common.targets(2703, 9)


Looks like this is caused by aspnet_merge.exe run in MSBuild task if you have the deployment projects "Output Assemblies" tab set to "Merge all outputs to a single assembly" and the Assembly name is the same as another assembly (probably your web application project's assembly name) in the project.

 
NHibnate mapping for SQL Server SP returned data set needs a surrogate key
Written by Harry Zheng   

Came through this a few days ago where we have a SP return data without a unique identifier. It cause some grief on NHibernate to differenciate returning rows. 

Mapping a composite key would be idea but it looks like a surrogate key would be necessary here to help resolve the issue.
http://stackoverflow.com/questions/1098791/nhibernate-stored-procedures-and-composite-keys


On the database side, we don't want to send unnecessary data across the wire to the client. So adding a surrogate key may raise some concerns with the reviewer.

 
«StartPrev12NextEnd»

Page 1 of 2