# Alternative Solution - If iisnode Doesn't Work ## Problem iisnode keeps giving error 0x00000002 - can't execute Node.js ## Alternative Solutions ### Option 1: PM2 (Process Manager) Run Node.js as a Windows service using PM2: ```cmd npm install -g pm2 pm2 start dist/server.js --name pozoapp pm2 startup pm2 save ``` Then use IIS as reverse proxy to PM2 (port 3000) ### Option 2: Windows Service (node-windows) Install Node.js app as Windows service: ```cmd npm install -g node-windows ``` ### Option 3: IIS Reverse Proxy to Node.js 1. Run Node.js on port 3000 separately 2. Use IIS URL Rewrite to proxy requests to Node.js 3. No iisnode needed ### Option 4: Check iisnode Installation Maybe iisnode isn't installed correctly: - Reinstall iisnode from: https://github.com/Azure/iisnode/releases - Make sure it's the correct version (x64 vs x86) - Restart IIS after installation ## Current Status - ✅ Node.js works - ✅ Server file works - ✅ Permissions set - ❌ iisnode can't execute Node.js (Error 0x00000002) ## Recommendation Try PM2 - it's simpler and more reliable than iisnode for Node.js on Windows.