c++ - Windows Service failes to start with "Path '.' not found" -


disclaimer: error message translated swedish (and it's pain find exact corresponding error message in english, microsoft take note...) error message "path ' ' not found" or "path not found". it's bit unclear due swedish message not enclosing path in ' '.

this similar question, not exactly: new windows service installed, fails start: "system error 2 ... system cannot find file specified"

i have written service myself. exe written in unmanaged c++ , using following external code:

  • libntlm - loaded dynamic library (libntlm-0.dll placed in same location executable)
  • openssl - loaded static library
  • pugixml - compiled directly code

the problem i'm having doesn't start when windows starts, start if manually start it! stumped wrong. thing can think of if perhaps dll can't found, don't know why wouldn't. environment variables being different perhaps?

what have tried:

  • checked registry, path correct
  • path local disk
  • changed number of different paths (no change)
  • made sure there no spaces in path
  • logging @ start of program (nothing written log, it's not internal path not found error)
  • dll in same path
  • set start own network account (no change)
  • tried renaming exe same service name (no change)
  • tried registering libntlm-0.dll regsrv32 didn't work
  • put libntlm-0.dll in system32 (no change)

for posterity seems delayed start suggested 51k seems work. don't know why should make difference, long works i'm happy.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -