如果不用IIS作为.NET Remoting的Host,可以自己编写一个Windows Service Application,该应用程序只需要在OnStart函数中读取一个XML格式的配置文件即可:
clearcase/" target="_blank" >cc>System.Runtime.Remoting.RemotingConfiguration.Configure(FileName) |
配置文件的例子如下:
<configuration>
<system.runtime.remoting>
<application>
<service>
<activated type = "GrapeCity.ERP.Facade.Dep, GrapeCity.ERP.Facade" />
...
</service>
<channels>
<channel ref="Tcp" port="8181" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
|