服务器端引用如下
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting.Lifetime;
using TelBookLib;*.config.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="TBookServer">
<service>
<wellknown mode="Singleton" type="TelBookInfo.TelBookImpl,tbookserver" objectUri="telephoneURI" />
</service> <channels>
<channel ref="tcp" port="808">
<serverProviders>
<formatter ref="binary" typeFilterLevel='Full'/>
<!-- .NET框架1.1版本, 为序列化对象加上typeFilterLevel='Full' -->
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>客户端引用如下
using System.Configuration;
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using TelBookLib;*.config.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="bookURL" value="tcp://localhost:808/telephoneURI"/>
</appSettings> <system.runtime.remoting>
<application name="TelBookClient">
<channels>
<channel ref="tcp" port="0">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>能确定这在网上可以进行通信息吗?网络通信息必要的命名空间是什么
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using System.Runtime.Remoting.Lifetime;
using TelBookLib;*.config.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application name="TBookServer">
<service>
<wellknown mode="Singleton" type="TelBookInfo.TelBookImpl,tbookserver" objectUri="telephoneURI" />
</service> <channels>
<channel ref="tcp" port="808">
<serverProviders>
<formatter ref="binary" typeFilterLevel='Full'/>
<!-- .NET框架1.1版本, 为序列化对象加上typeFilterLevel='Full' -->
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>客户端引用如下
using System.Configuration;
using System.Runtime.Remoting;
using System.Runtime.CompilerServices;
using TelBookLib;*.config.exe
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="bookURL" value="tcp://localhost:808/telephoneURI"/>
</appSettings> <system.runtime.remoting>
<application name="TelBookClient">
<channels>
<channel ref="tcp" port="0">
<clientProviders>
<formatter ref="binary" />
</clientProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>能确定这在网上可以进行通信息吗?网络通信息必要的命名空间是什么
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货