远程处理错误:找不到请求的服务 [英] Remoting Error: Requested Service Not Found

查看:103
本文介绍了远程处理错误:找不到请求的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试创建一个不起作用的远程处理的非常简单的示例.我启动主机,当我启动客户端时,它显示找不到请求的服务"

我的申请书的一部分是:
1.远程处理对象:MarshalByRefObject
2. ComponentHost
3.客户
您可以从此处下载我的项目

已经两天了,我快疯了.是否有人可以告诉我我在哪里错?

Hi,

I am trying to create a very simple example of remoting which isn''t working. I start the host and when I start client, it says "requested service not found"

Parts of My Application are:
1. Remoting Object : MarshalByRefObject
2. ComponentHost
3. Client
You can download my project from here

It has been 2 days and I am going crazy. Requested if someone can tell that where am I wrong?

推荐答案


我设法通过点击和尝试解决了这个问题.

我将CLient的App.config修改如下:
< client url ="tcp://localhost:8000/ComponentHost">


< client url ="tcp://localhost:8000">

我不知道为什么它能正常工作,因为我到处都读到服务器的app.config中指定了任何应用程序名称,该名称被附加到客户端的URL.

由于问题现在已经缩小,我要求是否有人可以帮助我了解此修复程序.为什么它可以从客户端的URL中删除ComponentHost?
Hi
I managed to resolve this issue with hits-and-trials.

I modified CLient''s App.config as following:
<client url="tcp://localhost:8000/ComponentHost">

to
<client url="tcp://localhost:8000">

I don;t know why it worked as I have read everywhere that whatever application name is specified in server''s app.config, that gets appended to client''s URL.

As issue is now narrowed, I request if anyone can help me in understanding this fix. Why it worked on removing ComponentHost from client''s URL?


这篇关于远程处理错误:找不到请求的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆