How to use node.js server as a iis server?

Can I use node.js server as a web server?

Such as I will run aspx sites or wcf service in node.js server instead of IIS? Can I do it without IIS?

There are several alternatives to IIS for hosting ASP.NET applications such as:

  • IIS Express
  • Apache (Mono)
  • Cassini (not actively developped)
  • Kayak Project (not actively developped)
  • C# WebServer (not actively developped)
  • Abyss (not actively developped)

There are probably others, but generally most of them aren't actively developed.

Node.js is a little different. It is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. It fetures a event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices. It can still act as a web server and serve content. Node applications, to my knowledge, are written in JavaScript.

With this said:

  • Node.js can run on IIS, that's different from .NET running on Node.js
  • ASP.NET websites cannot run on Node.js
  • ASP.NET projects can benefit from using Node.js for some of its operations
  • ASP.NET has its own technology similar to Node.js and Socket.io called SignalR

TLDR - No, you can't.

These are different technologies, taken from Node.js website:

Node.js® is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

It is feasible to develop an aspnx interpreter in javascript, but makes absolutely no sense to implement one programming language in another programming language.


There must be a reason of this question asked, you could instead tell us why do you desire to have Nodejs to become an aspx server, there might be more elegant solution.