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