<? xml version="1.0" encoding="utf-8" ?> < configuration > < system .runtime.remoting > < application name ="Client" > < client displayName ="Hello Client for well-known objects" > <!-- 客户端激活方式 --> <!-- <client url="tcp://localhost:8888/Hello" displayName="Hello Client for well-known objects"> --> <!-- <activated type="Remote.Hello,RemoteHello"/> --> <!-- 服务器激活 --> < wellknown type ="Remote.Hello,RemoteHello" url ="tcp://localhost:8888/Hello/Hi" /> </ client > < channels > < channel ref ="tcp" displayName ="TCP Channel(HelloClient)" /> </ channels > </ application > </ system.runtime.remoting > </ configuration >