.Net Remoting 的问题,请教各位.
服务器端我这样写:
TcpServerChannel channel = new TcpServerChannel(8080);
ChannelServices.RegisterChannel(channel);
RemotingConfiguration.ApplicationName = "VATPService";
RemotingConfiguration.RegisterWellKnownServiceType(typeof(SMARTSInvoice),
"SMARTSInvoice", WellKnownObjectMode.SingleCall);
客户端能正常调用SMARTSInvoice对象.
但服务器端改成:
RemotingConfiguration.Configure("ServiceConsole.exe.config");
客户端却调用失败:Requested Service not found.
我的server端配置有问题,但我却找不到:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.runtime.remoting>
<application>
<service name="VATPService">
<wellknown mode="SingleCall" type="VATP.BLL.SMARTSInvoice, VATP.BLL" objectUri="SMARTSInvoice" />
</service>
<channels>
<channel ref="tcp server" port="8080" />
</channels>
</application>
</system.runtime.remoting>
</configuration>
VATP.BLL是SMARTSInvoice对象的程序集.
谁能帮忙看看.谢谢.