请将下面这段remoting设置改成config配置格式,谢谢
BinaryServerFormatterSinkProvider provider = new BinaryServerFormatterSinkProvider();
provider.TypeFilterLevel = TypeFilterLevel.Full;
// 设置通道属性
IDictionary props = new Hashtable();
props[ "port "] = 8085;
//注册信道
TcpChannel chan = new TcpChannel(props, null, provider);
ChannelServices.RegisterChannel(chan);
//注册提供服务的远程对象
RemotingConfiguration.RegisterWellKnownServiceType(typeof(ydglDB), "ydglDB ", WellKnownObjectMode.Singleton);
------解决方案--------------------up
------解决方案-------------------- <system.runtime.remoting>
<application>
<channels>
<channel ref= "tcp " port= "8085 "/>
<serverProviders>
<formatter ref= "binary " />
</serverProviders>
</channels>
<service>
<wellknown mode= "Singleton " type= "ydglDB,ydglDB " objectUri= "ydglDB.rem " />
</service>
</application>
</system.runtime.remoting>