node-oracle
node-oracle copied to clipboard
oracle_bindings.node Module Error via iisnode, but Works in Command Window
I'm trying to perform an Oracle query with node-oracle via iisnode. I renamed all of my node files as *.njs and currently have my web.config set up for iisnode to handle all files of that extension, and a rewrite rule to forward the incoming requests to index.njs. "index.njs" is a server setup based upon The Node Beginner book's example (i.e. index.njs->server.njs->router.njs->requesthandlers.njs). The problem occurs when node-oracle -- utilized within requesthandlers.njs -- attempts to call oracle_bindings.node:
Application has thrown an uncaught exception and is terminated:
Error: The specified module could not be found.
c:\Program Files\iisnode\www\Reports\node_modules\oracle\build\Release\oracle_bindings.node
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (c:\Program Files\iisnode\www\Reports\node_modules\oracle\lib\oracle.njs:2:16)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
node-oracle works flawlessly if I run it in a command window, but fails when accessed through iisnode. Any ideas? Thanks in advance!