web.config 服务端
<configuration>
<system.runtime.remoting>
<application>
<service>
<wellknown mode="singleton" type="Coordinator,PaintCoordinator" objectUri="Coordinator.rem"></wellknown>
</service>
<channels>
<channel ref="http" >
<serverProviders>
<provider ref="wsdl" ></provider>
<formatter ref="binary" typeFilterLevel="Full"></formatter>
</serverProviders>
<clientProviders>
<formatter ref="binary"></formatter>
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
<system.web>
<compilation defaultLanguage="c#" />
<customErrors mode="On" />
</system.web>
</configuration>