Remoting 版本错误问题

flyingjust 2004-01-06 04:11:55
客户端
System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider bcfProd=new BinaryClientFormatterSinkProvider( );
System.Runtime.Remoting.Channels.Http.HttpChannel htcal=new HttpChannel(null,bcfProd,null);
ChannelServices.RegisterChannel(htcal);
RemotingConfiguration.RegisterWellKnownClientType( typeof(ApplyRemoteCS_Server.ApplyServerLib), "http://localhost/NullWebApply/ApplyServerLib.rem");

ApplyServerLib applyServer=new ApplyServerLib();
然后一调用方法就报{"BinaryFormatter 版本不兼容。应为版本 1.0。接收到的版本为 1008738336.1684104552。" }
服务端是一个简单的dll 只有一个方法 返回一个字符串;寄主是IIS
服务端配置 WebConfig。config

<system.runtime.remoting>
<application>
<service>
<wellknown
mode="SingleCall"
objectUri="ServerSide.rem"
type="ApplyRemoteCS_Server.ApplyServerLib, ApplyRemoteCS_Server" />
</service>
</application>
</system.runtime.remoting>
...全文
37 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
qqchen79 2004-01-07
  • 打赏
  • 举报
回复
This actually has nothing to do with version. It's most likely a config problem.
This might be helpful:
http://www.ingorammer.com/RemotingFAQ/BINARYVERSIONMISMATCH.html
flyingjust 2004-01-06
  • 打赏
  • 举报
回复
我用的是VS2003

110,571

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧