Cannot connect to a remote object hosted in a window service

J

Julia

Hi,

My client uses a remote object
when I host the remote object inside a windows application all seem to work
fine
but when I host the same object inside a windows service I get the following
error

" connection attempt failed because the connected party did not properly
respond after a period of time, or established connection failed because
connected host has failed to respond"

If the window service run on the same computer that it is running fine

Thanks.
 
B

BuddyWork

Hello Julia,

It looks like the user account setup for the service does
not have access to the remote object. Trying change the
user account to the one you are logged in as when it
worked.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Are any of the computers running a firewall?

are you using the correct IP to access the remote computer?


cheers,
 
J

Julia

I am not sure I understand you

Machine A running windows application client
Machine B running windows service ,hosting an object

What should I do in order that machine A will be able to connect the object
in machine B using .NET remoting?

if all run on the same machine thant it is working.



Thanks.
 
J

Julia

No firewall is running
the IP is correct

I think it is got to do with permissions but I don't quite know what to do
If a window service is running in machine A there must be a way to prevent
or enable other machine to connect it
isn't it?!?
 
R

Richard Blewett [DevelopMentor]

What technology are youo using to call betwwen the processes? Remoting? DCOM(COM+ Serviced Commponent)?

Regards

Richard Blewett - DevelopMentor
http://www.dotnetconsult.co.uk/weblog
http://www.dotnetconsult.co.uk

No firewall is running
the IP is correct

I think it is got to do with permissions but I don't quite know what to do
If a window service is running in machine A there must be a way to prevent
or enable other machine to connect it
isn't it?!?
 
B

BuddyWork

Basically has the user that is running the Windows
Service got access to the Remote object.
 
J

Julia

The 'remote' object is hosted in the window service
by saying remote object I mean an object which can be accessed remotely
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top