Archived

This forum has been archived. Please start a new discussion on GitHub.

Cannot run icepackregistry as a service?

I get into this same problem each time i try to run the ice registry as a service:

e:\ice>icepackregistry --install IceRegistry --Ice.Config=e:\ice\icepack.cfg

e:\ice>net start iceregistry
The IceRegistry service is starting.
The IceRegistry service could not be started.

A system error has occurred.

System error 1 has occurred.

Incorrect function.

When run inside the command shell (with the same configuration file) every thing is ok.
This problem is reproducible with ice 1.5.1 on W2000/SP4 and XP/SP1.
Does the ice services have some specific dependencies?

Comments

  • Re: Cannot run icepackregistry as a service?

    Did you try to place all relevant DLLs (iceXX.dll et al) into the system directory? For services, the 'current directory' is the system directory, not the directory where the DLLs are located.

    The problems you ran in are often a result of the unavailability of the necessary DLLs :)

    regs,

    Stephan
  • The trick didn't worked!

    Am i the only one with this problem (nobody can hear you cry in the web space)?
  • Hmm. Just a quick question on my comment.

    Did you place (at least iceXX.dll, iceutilXX.dll, icepackXX.dll, freezeXX.dll, libdb42.dll (probably), MSVCP71.DL, MSVCR71.DLL) in the sysdir?

    You can check out the DLL dependencies using the DependencyWalker which comes with the VS.net package (depends.exe).

    regs,

    Stephan
  • Stephan,

    I moved the full ice binaries to system32, to be sure...

    Does some properties have to be set in the config file (like using the windows events instead of the standard output)?