iisnode

iisnode won't run Express

大憨熊 提交于 2019-12-12 18:36:33
问题 I'm trying to run express using iisnode. I followed the examples provided but when trying to use the latest Express version with a basic example, there's no way to make it work. I'm getting the error Cannot GET /node/parislight/hello.js and other times, just a The webpage cannot be found . My created a hello.js file (main express file) taken from the express docs. var express = require('express') var app = express() app.get('/', function (req, res) { res.send('Hello World!') }) var server =

Node.js native module is not a valid Win32 application error

谁说我不能喝 提交于 2019-12-12 08:19:54
问题 Trying to make Hello World native module for node.js Got an Win32 Project in VS 2012 with one file: #include <node.h> #include <v8.h> using namespace v8; Handle<Value> Method(const Arguments& args) { HandleScope scope; return scope.Close(String::New("world")); } void init(Handle<Object> target) { target->Set(String::NewSymbol("hello"), FunctionTemplate::New(Method)->GetFunction()); } NODE_MODULE(hello, init) That`s compiles to hello.node. Options: - Dynamic Library (.dll) - No Common Language

websockets connection does time out

≯℡__Kan透↙ 提交于 2019-12-12 05:38:28
问题 I got Problems with websockets on my Azure WebApp. I cloned Node-red from github and published it onto a brand new WebApp in Azure (using VisualStudioOnline). Than I installed all packages and build the solution using grunt. (As described here) After that I changed the settings.js and configured azure to support websockets. (as described here). But the websockets still do not work: Chrome does show the following Error: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT I can not

Node 0.11.x in Azure Web Site

喜你入骨 提交于 2019-12-11 20:36:40
问题 I am trying to get a node app running on Azure with version 0.11.x of node, so I can take advantage of some new features (e.g. generators & Koa). I have read this question and tried to follow the steps, with no success so far: Error setting up node v0.11.x on Azure WebSite Here are the steps I did: In VS2013 (update3), File => New Project Choose "Blank Microsoft Azure Node.js Web Application" (under Templates/Javascript/node.js), click OK In server.js, change the last "hello world" line to

Uncaught SyntaxError: Unexpected token < runtime.4501af5c35d1125f6901.js:1 upon running IISnode

社会主义新天地 提交于 2019-12-11 15:46:15
问题 Root directory inside iisnode inside client directory <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>ANSYS Licensing Portal</title> <base href="/node/"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="icon" type="image/x-icon" href="favicon.ico"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"

Node HTTP request using a named pipe

假如想象 提交于 2019-12-11 13:42:54
问题 I am trying to request a GET through an existing named pipe. This is to work around the fact that Node processes on Azure are wrapped by IISNode, thus not having a port of their own, but rather being given a named pipe (as the PORT environment variable). Node's net.Server class knows how to handle named pipes, which explains why HTTP routing works fine (as http .Server` seems to use the same interface). From the docs: Class: net.Server on server.listen(path[, callback]) On Windows, the local

Accessing Azure ServiceConfiguration settings in Node.js

我的梦境 提交于 2019-12-11 09:13:35
问题 I'm coming to the beta deployment phase of building a Node.js application running through iisnode on Windows Azure. Having set up multiple instances, as well as production/staging separation, my research has led me to the following conclusion: If I want to change configuration settings on the fly without redeploying code, I need to use Service Configuration .cscfg files. My problem is that I've stored various configuration settings in the <appSettings> and <iisnode> elements of web.config

iisnode: Unknown stdin file type

☆樱花仙子☆ 提交于 2019-12-11 06:03:44
问题 I have iisnode working smoothly on win8/IIS8. I created a very simple hello world and it works great. However, when I try to use process.stdin I get the following error: Application has thrown an uncaught exception and is terminated: Error: Implement me. Unknown stdin file type! at process.startup.processStdio.process.openStdin [as stdin] (node.js:405:17) at Object.<anonymous> (C:\ApprendaPlatform\SiteData\developer\v1\root\shim\node_modules\actionhero\bin\zzz.js:7:20) at Module._compile

Permissions and request with iisnode

♀尐吖头ヾ 提交于 2019-12-11 05:34:07
问题 I run my Node.js app and I got a heavy error iisnode encountered an error when processing the request. HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error You are receiving this HTTP 200 response because system.webServer/iisnode/@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 node.exe process has not written any

Secure CookieSession when using iisnode

陌路散爱 提交于 2019-12-11 01:49:38
问题 I'm using node with IIS by using iisnode and I'm having troubles setting the CookieSession option secure:true . I'm using HTTPS on IIS and I'm redirecting any HTTP to HTTPS. But evenw ith this, if I set the CookieSession option secure:true , the session won't have any content after login. secure: a boolean indicating whether the cookie is only to be sent over HTTPS (false by default for HTTP, true by default for HTTPS). I'm forced to use secure:false to make it work. Why is it? 回答1: CAUSE