读书人

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

发布时间: 2012-02-13 17:20:26 作者: rapoo

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

读书人网 >asp.net

热点推荐