Win32-services - RPC server unavailable?

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

On 1/4/06, Daniel McBrearty [email protected] 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

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?

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

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