日期:2014-05-18  浏览次数:20397 次

如何使用配置文件管理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);