helloworld
helloworld

Reputation: 2311

Remoting Error: Requested Service Not Found

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

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

Upvotes: 2

Views: 6911

Answers (1)

Timores
Timores

Reputation: 14589

Questions in SO normally contain a summary of the code that poses problem, not a link to a complete project.

As you're new, I have taken a look anyway.

I could reproduce the problem, but not being a .NET remoting expert, I do not know what should be fixed in the part of the config. An internet search returns a lot of samples that use the tag for registration.

If you replace your client config by:

        <client>
            <wellknown
            type="MyRemoteObject.Greetings,MyRemoteObject"
            url="tcp://localhost:8737/ComponentHost" />
        </client>        

and the server config by:

  <service>
      <wellknown
      mode="Singleton"
      type="MyRemoteObject.Greetings,MyRemoteObject"
      objectUri="ComponentHost"/>
  </service>

It works fine.

Upvotes: 1

Related Questions