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