首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

Remoting如何能不用配置文件

2012-06-28 
Remoting怎么能不用配置文件不用配置文件,用代码怎么写Remoting的配置呢?比如下面这段配置文件,怎么翻译成

Remoting怎么能不用配置文件
不用配置文件,用代码怎么写Remoting的配置呢?比如下面这段配置文件,怎么翻译成代码?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.runtime.remoting>
  <application>
  <client>
  <wellknown type="RemotingObject.MyObject,RemotingObject" objectUri="cRemotingClass" mode="Singleton" />
  </client>
  <channels>
  <channel port="1011" ref="http">
  <serverProviders>
  <provider ref="wsdl" />
  <formatter ref="soap" typeFilterLevel="Full" />
  <formatter ref="binary" typeFilterLevel="Full" />
  </serverProviders>
  </channel>
  </channels>
  </application>
  </system.runtime.remoting>
</configuration>

[解决办法]
具体需求请说清楚一下,先帮你顶

热点排行