关于RemotingConfiguration.Configure("object.exe.config")的问题

程序员happytonny 2003-07-04 08:03:14
我试了好几次,写了一个config的文件,然后再服务器端用RemotingConfiguration.Configure注册,结果老是出现异常。
有没有成功的代码,给我贴上去,我好看看到底错在哪里?谢谢了!
...全文
174 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
tenyears 2003-07-05
  • 打赏
  • 举报
回复
客户端:
<configuration>
<system.runtime.remoting>
<application name="JobClient_JobEventRepeater">
<client>
<wellknown type="JobServerLib.JobServerImpl, JobServerLib" url="tcp://localhost:4000/JobURI" />
</client>
<channels>
<channel ref="tcp" port="0" >
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
服务端:
<configuration>
<system.runtime.remoting>
<application name="JobServer">
<service>
<wellknown mode="Singleton" type="JobServerLib.JobServerImpl, JobServerLib" objectUri="JobURI" />
<activated type="JobServerLib.JobNotes, JobServerLib" />
</service>
<channels>
<channel ref="tcp" port="4000">
<serverProviders>
<formatter ref="binary" typeFilterLevel="Full" />
</serverProviders>
</channel>
</channels>
</application>
</system.runtime.remoting>
</configuration>
jhnhu 2003-07-04
  • 打赏
  • 举报
回复
>结果老是出现异常。
你把异常贴上来比较好

.net sdk 里有sample

1,979

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 其他语言讨论
社区管理员
  • 其他语言社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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