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

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

2012-02-13 
如何使用配置文件管理Remoting配置?在Visual Studio 2008中,如何使用配置文件管理Remoting配置啊?哪位朋友

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

热点排行