Skip to content

error executing service with admin permissions #471

@SergioSuarezGil

Description

@SergioSuarezGil

i have installed access redistributable in 64 bits properly.

my config is  
Provider=Microsoft.ACE.OLEDB.16.0;Data Source=C:/BBDD.accdb;Jet OLEDB:Database Password=1234;Persist Security Info=False;',

if i open the terminal and execute the api it works properly.

if i open a terminal with "administrator" permissions

Captura de pantalla 2023-02-19 a las 20 03 22

and execute the api i have this error:

Error: Spawn C:\Windows\System32\cscript.exe error
    at ChildProcess.<anonymous> (C:\myapi\node_modules\node-adodb\lib\spawn.js:120:37)
    at ChildProcess.emit (events.js:400:28)
    at maybeClose (internal/child_process.js:1058:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:293:5)
    at Process.callbackTrampoline (internal/async_hooks.js:130:17) {
  process: {
    code: -2147467259,
    message: "'C:/BBDD.accdb' is not a valid path. Make sure the path is spelled correctly and you are connected to the server where the file is located."
  },
  exitCode: 0

It is a problem related to the admin user, but I don't know how to solve it :/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions