当前位置: 代码迷 >> ASP.NET >> 怎么使用配置文件管理Remoting配置
  详细解决方案

怎么使用配置文件管理Remoting配置

热度:6920   发布时间:2013-02-25 00:00:00.0
如何使用配置文件管理Remoting配置?
在Visual Studio 2008中,如何使用配置文件管理Remoting配置啊?哪位朋友能指点指点,非常感谢!!!!!!!

------解决方案--------------------------------------------------------
配置文件


<system.runtime.remoting>
<application>
<service>
<wellknown mode="Singleton"
type="namespace.mytype, namespace"
objectUri="SendService" />
</service>
<channels>
<channel port="8008" ref="tcp"/>
</channels>
</application>
</system.runtime.remoting>

程序代码:
 RemotingConfiguration.Configure(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, false);