apply patch 2171 from Alan
http://bazaar.launchpad.net/~alan-paterson/openpetraorg/20130115_alan_net_remoting/revision/2171