By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,480 Members | 1,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,480 IT Pros & Developers. It's quick & easy.

Cannot connect to a remote object hosted in a window service

P: n/a
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.


Nov 16 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
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.
-----Original Message-----
Hi,

My client uses a remote object
when I host the remote object inside a windows application all seem to workfine
but when I host the same object inside a windows service I get the followingerror

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

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


.

Nov 16 '05 #2

P: n/a
Hi,

Are any of the computers running a firewall?

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

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Julia" <co********@012.net.il> wrote in message
news:eU**************@TK2MSFTNGP14.phx.gbl...
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.

Nov 16 '05 #3

P: n/a
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.

"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:0e****************************@phx.gbl...
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.
-----Original Message-----
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.


.

Nov 16 '05 #4

P: n/a

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?!?

"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:eM**************@tk2msftngp13.phx.gbl...
Hi,

Are any of the computers running a firewall?

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

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Julia" <co********@012.net.il> wrote in message
news:eU**************@TK2MSFTNGP14.phx.gbl...
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.


Nov 16 '05 #5

P: n/a
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?!?

Nov 16 '05 #6

P: n/a
Basically has the user that is running the Windows
Service got access to the Remote object.
-----Original Message-----
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 objectin machine B using .NET remoting?

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

Thanks.

"BuddyWork" <an*******@discussions.microsoft.com> wrote in messagenews:0e****************************@phx.gbl...
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.
>-----Original Message-----
>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.
>
>
>
>
>.
>

.

Nov 16 '05 #7

P: n/a

I am using .NET remoting

"Richard Blewett [DevelopMentor]" <ri******@NOSPAMdevelop.com> wrote in
message news:u%****************@TK2MSFTNGP12.phx.gbl...
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?!?

Nov 16 '05 #8

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

"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:15****************************@phx.gbl...
Basically has the user that is running the Windows
Service got access to the Remote object.
-----Original Message-----
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.

"BuddyWork" <an*******@discussions.microsoft.com> wrote

in message
news:0e****************************@phx.gbl...
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.

>-----Original Message-----
>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.
>
>
>
>
>.
>

.

Nov 16 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.