Win32-services - RPC server unavailable?


#1

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?

thanks

Daniel


#2

On 1/4/06, Daniel McBrearty removed_email_address@domain.invalid wrote:

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

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?


#4

thanks. I found out how to find the docs for this now … :slight_smile:


#5

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-forum.com/.

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