# Reinstall iisnode - Step by Step ## Current Issue iisnode error 0x00000002 - can't execute Node.js ## Solution: Reinstall iisnode ### Step 1: Uninstall Current iisnode 1. Control Panel → Programs → Uninstall 2. Find "iisnode" → Uninstall 3. Or manually remove from: `C:\Program Files\iisnode` ### Step 2: Download Fresh iisnode - Go to: https://github.com/Azure/iisnode/releases - Download: **iisnode-full-v0.2.26-x64.msi** (or latest x64 version) - Make sure it's **x64** (not x86) ### Step 3: Install 1. Run the .msi file as Administrator 2. Follow installation wizard 3. Make sure "Register iisnode with IIS" is checked ### Step 4: Restart - Restart IIS: `iisreset` - Or restart computer ### Step 5: Verify Installation 1. Check: `C:\Program Files\iisnode\iisnode.dll` exists 2. IIS Manager → Server → Modules → Should see "iisnode" 3. Test with hello.cjs ### Step 6: If Still Error Check Node.js version compatibility: - iisnode v0.2.26 works with Node.js 12-18 - If Node.js 19+, might need newer iisnode version ## Alternative: Try Without nodeProcessCommandLine Sometimes letting iisnode find Node.js automatically works better. Remove from web.config: ```xml nodeProcessCommandLine="C:\Program Files\nodejs\node.exe" ``` Let iisnode use PATH to find Node.js.