Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8361159
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T11:38:13+00:00 2026-06-09T11:38:13+00:00

I am having this error on my page. iisnode encountered an error when processing

  • 0

I am having this error on my page.

iisnode encountered an error when processing the request.
HRESULT: 0x2
HTTP status: 500enter code here
HTTP reason: Internal Server Error

You are receiving this HTTP 200 response because system.webServer/iienter code heresnode/@devErrorsEnabled configuration setting is ‘true’.

In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.

The last 64k of the output generated by the node.exe process to stdout and stderr is shown below:

node.js:201
throw e; // process.nextTick error, or ‘error’ event on first tick
^
Error: Unable to load shared library C:\DWASFiles\Sites\leagues\VirtualDirectory0\site\wwwroot\node_modules\node-sqlserver\lib\sqlserver.node
at Object..node (module.js:472:11)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object. (C:\DWASFiles\Sites\leagues\VirtualDirectory0\site\wwwroot\node_modules\node-sqlserver\lib\sql.js:20:11)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)

and this is my code for server.js

var sql = require('node-sqlserver');
var conn_str = the value of ODBC in Connection Strings;
var http = require('http');
var port = process.env.port;
http.createServer(function(req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.write("start");
res.end("finish");
sql.query(conn_str, "SELECT * FROM GAME_PARTICIPANT", function(err, results) {
    if (err) {
        res.writeHead(500, {'Content-Type': 'text/plain'});
        res.write("Database Error: " + err)
        res.end("");
        return;
    }
    res.writeHead(200, {'Content-Type': 'text/plain'});
    for (var i = 0; i < results.length; i++) {
        res.write("ID: " + results[i].PlayerID + " GameID: " + results[i].GameID + " Team: " + results[i].Team + " Confirmed: " + results[i].Confirmed + " RoleID: " + results[i].RoleID);
    }
    res.end("; Done.");
});
}).listen(port);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T11:38:15+00:00Added an answer on June 9, 2026 at 11:38 am

    I ran into this error trying out the driver too.

    Turns out, I didn’t have all the prerequisites for compiling the .node file which seems to happen automatically at deployment time.

    What worked for me was to include the pre-compiled .node file from the article Jim mentions above (direct link at http://www.microsoft.com/en-us/download/details.aspx?id=29995) and put it in the node_modules\node-sqlserver\lib folder alongside the sql.js file. Redeploy everything (including the .node file) and you should be good to go.

    Oh – I remember still seeing an error about not being able to compile the .node file, but it seemed to run OK anyway since I’d provided the binary myself. Go figure…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having this error page in Django. Exception Type: IndexError Exception Value: list index
I've having this problem with some JavaScript code. I've simplified it in the error
I am having this odd error with my code. I am trying to troubleshoot
I'm having this exception, @6agjdofnm Internal Server Error (500) for request GET / Oops:
I am having this error in my j2ee web application. java.sql.SQLException: ORA-00604: error occurred
I'm having this problem where I keep getting this error in my console: *
I`m having the following error . Why am I having this error and how
having sorted this error - Ruby mysql2 Error I now am recieving this error
I am having this bizarre error and I don't know what to do. This
I'm having this WEIRD Xcode error - Uncategorized error. It seems to look for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.