How to install IISNode on Windows

Harvey Williams · 87K views · 2016 · 10:07

Open on YouTube

Web developmentCloud, DevOps & reliabilitytutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking how to host Node.js, Express or Angular apps on IIS with iisnode, since it is a quick step-by-step walkthrough.

Recommended by 4 people across 4 different months, 2016 to 2023.

What it is

A 10-minute screen-recorded tutorial by Harvey Williams showing how to install iisnode on Windows so Node.js apps can run under IIS. It also covers the URL Rewrite module and a basic web.config setup, with links to a blog post and a GitHub gist.

What people said

Recommends JohnnyFun · 2016-06 · Stack Overflow · on “Deploy NodeJs Express App on Windows and Linux Server”

Here are what seem to be the recommended ways that I've found: Windows: iis-node [LINK] (and this vid [this video] is helpful to get that going). Also note you'll need IIS 8x to support websockets. Linux: PM2 to manage the process, and nginx for proxy server. This article [LINK] has helpful step-by-step for Ubuntu.

Recommends Chris Nguyen · 2016-11 · Stack Overflow · on “parse server migration cannot connect to mongo”

if you run nodejs on window, you should use iisnode to run nodejs on iis. i found this here [this video] have fun.

Recommends Supun De Silva · 2019-10 · Stack Overflow · on “Deploy Angular Universal to IIS”

The following flow worked for me after 2 days of trial and error (Angular 8) Assuming you followed [LINK] Assuming you changed the src\tsconfig.server.json as -- use this comment if tsconfig.server.json is generated inside src folder already { "extends": "./tsconfig.app.json", "compilerOptions": { "outDir": "../out-tsc/app-server", "module": "commonjs" }, "files": [ "src/main.server.ts" -- old "main.server.ts" -- use this ], "angularCompilerOptions": { "entryModule": "./app/app.server.module#AppServerModule" } } And compiled using npm run build:ssr && npm run serve:ssr Follow the answer 1 of this Post and Install iisnode from [LINK] (refer this guy's tutorial if required [this video] ) install ur

Recommends gib65 · 2019-12 · Stack Overflow · on “Why is my node.js server not working under iisnode?”

I'm trying to run a node server in IIS 10 using iisnode, but it's not working. I followed this guide here exactly: [this video] My main node server file is app.js and it looks like this: const exp = require('express'); const contactRoutes = require('./routes/contact'); const cors = require('cors'); const app = exp(); const port = 3000; //process.env.PORT; const corsOptions = { origin: [' [LINK] ', ' [LINK] ', ' [LINK] '], optionsSuccessStatus: 200 }; app.use(cors(corsOptions)); app.get('/', function (req, res) { res.send('GET: Express is workinging on IISNode.'); }); app.post('/', function (req, res) { res.send('POST: Express is workinging on IISNode.'); }); app.listen(port); module.exports = app

Cites pbordeaux · 2016-03 · Stack Overflow · on “Error: listen EACCES 0.0.0.0:80 Node on azure server (Windows server 2012 r2)”

I stopped the World Wide Web Publishing Service and changed the Startup Type to Disabled and ran as administrator to start the website but received the EACCES. Is this a permissions error? I have read that running the website with sudo on linux / unix fixes this, but what about on windows? EDIT: I ended up using iisnode as I could not resolve the EACCES error on port 80. Here are the steps I used to get my node server running on iis through iisnode module: *Install iisnode (wherever you want); *Install 'URL Rewrite' plugin for iss; *Create new site; *Create web.config file with: handler mapping for iisnode on server file with path to server file; rewrite url rule that any request to url goes

Cites gib65 · 2018-01 · Stack Overflow · on “How to deploy Angular 2 application onto Windows Server 2016”

I'm trying to deploy an Angular 2 application to Windows Server 2016. I followed along in this video to get the server setup to handle angular applications: [this video] Everything went smoothly. Now I'm trying to deploy our full Angular application and it's not working. I'm told I can take the contents of the dist folder and simply drop it onto the server in the root folder of the website. Here's the dist folder on my development machine: [LINK] I copy and paste this as-is directly into the root folder on the server. The root folder also contains an iisnode folder and node_modules folder. I then create the following web.config file and save it to the root folder on the server: <configuration> <s

Cites gib65 · 2018-01 · Stack Overflow · on “Angular 2 site won't run in Windows Server 2016”

I'm following along in this video tutorial in order to learn how to deploy our Angular 2 site to a Windows Server 2016 machine: [this video] Everything the video suggests works. I've got IISNode, Node Express, and the starter Angular 2 application all working. Now I want to deploy my much more complex Angular 2 application. It was originally designed to run on Linux so I'm not sure what to tweak to get it to run on Windows Server 2016. I'm told I can just take the contents of dist and plop into into the website folder on Windows Server 2016. That's what I did. When I browse to it on the server, however, I get this: [LINK] The stack trace tells me it got to server.js, so that's a good sign. Where

Cites userlkjsflkdsvm · 2018-04 · Stack Overflow · on “Not working - deploying node application on IIS (iisnode) - Getting back 403 error”

I have a node/express API project. I am trying to run this project through Internet Information Service (IIS). My current structure within IIS - Sites -> environment (website) -> project1 | project2 (node application here). I converted project2 to an application with the environment app pool name. I then create the app. I try to hit my url but I get back a 403 forbidden error. I have given it all of the credentials. Unsure why this is happening. Some resources I've been using - video [this video] blog [LINK] web.config <?xml version="1.0" encoding="utf-8"?> <configuration> <system.webServer> <!-- By default IIS will block requests going to the bin directory for security reasons. We need to disabl

Cites Harvey Mushman · 2023-07 · Stack Overflow · on “iisNode default install failing in Windows 11, 500.19 Internal Server Error”

With Node v18.17.0 installed on my new Windows 11 computer, which is running IIS v10.0.22621.1, I proceeded to download iisNode (v0.2.26 dated 2/21/2017) and MS urlRewrite. I have been following the instructions from Harvey Williams ( [this video] , also read his blog post [LINK] (although it is a bit dated, 2016). The final step of the instructions instructed me to change directories to "C:\Program Files\iisNode" and run setupSamples.bat (no errors) and when it was done I opened my browser to [LINK] This displayed the expected page with several sample links. Problem none of the sample links work! They all return the same IIS 500.19 error page. The exact Error Code is: 0x80070021. The Config Erro