I’ve been trying Node.js running in Windows Azure Emulator, but unfortunatelly it isn’t working. Of course, I started from beginning, Hello World application, following steps in this tutorial.
I followed the steps below with 4 different computers and in all cases the page didn’t show anything.
- I opened Windows PowerShell environment as Administrator.
- I created node directory
- I entered the command: PS C:\node> New-AzureService tasklist
- I entered the command: PS C:\node\tasklist> Add-AzureNodeWebRole
Here, my application was created with the code above:
var http = require('http');
var port = process.env.port || 1337;
http.createServer(function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(port);
- And finally, I entered the command: PS C:\node\tasklist\WebRole1> Start-AzureEmulator -launch
Now I was supposed to see my hello world page. The question is, if somebody had success with the given tutorial? And what Am I doing wrong?
I had your exact same error and looking for a long time on the Internet I found this post.
Just to summarize, the problem is that there’s a script inside Node package for Azure that’s trying to grant permissions for “Network Service” to the web root directory.
However my system language is it-IT, so I don’t have a user called “Network Service”.
So you need to edit the script. If your application path is C:\node\tasklist then the script is located at
Just change this line:
with this:
This worked for me!