[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: win32-services - RPC server unavailable?

Ryan Leavengood

1/4/2006 7:17:00 PM

On 1/4/06, Daniel McBrearty <danielmcbrearty@gmail.com> wrote:
> Hi
>
> Trying to get a ruby win32 service running on my winxp. Downloaded the
> win32-installer from raa, it seemed to install OK. Then trying this
> sample code:
>
> require "win32/service"
> include Win32
>
> s = Service.new("some_machine")
> ...
>
> when I run this I get "The RPC Server is unavailable
> (Win32::ServiceError)
>
> at the s = .. line.
>
> Any ideas?

My suggestion would be to open the Windows Services console and make
sure the Remote Procedure Call (RPC) service and/or the RPC Locator
service are running.

Ryan


3 Answers

Daniel McBrearty

1/5/2006 8:26:00 AM

0

Thanks. I've done that. Both are running, but I have the same error. I
also tried a few different options in the logon section, same result.
Any other clues?



--
Posted via http://www.ruby-....


Daniel Berger

1/5/2006 1:50:00 PM

0

Daniel McBrearty wrote:
> Thanks. I've done that. Both are running, but I have the same error. I
> also tried a few different options in the logon section, same result.
> Any other clues?
>
>
>
> --
> Posted via http://www.ruby-....

The "some_machine" is just a stub for whatever machine you want to
install it on, it isn't meant to be used literally. If you just want
to install it on your local box, remove "some_machine", e.g. service =
Service.new.

Regards,

Dan

Daniel McBrearty

1/6/2006 9:24:00 AM

0

thanks. I found out how to find the docs for this now ... :-)

--
Posted via http://www.ruby-....