1.3 KiB
1.3 KiB
Reinstall iisnode - Step by Step
Current Issue
iisnode error 0x00000002 - can't execute Node.js
Solution: Reinstall iisnode
Step 1: Uninstall Current iisnode
- Control Panel → Programs → Uninstall
- Find "iisnode" → Uninstall
- 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
- Run the .msi file as Administrator
- Follow installation wizard
- Make sure "Register iisnode with IIS" is checked
Step 4: Restart
- Restart IIS:
iisreset - Or restart computer
Step 5: Verify Installation
- Check:
C:\Program Files\iisnode\iisnode.dllexists - IIS Manager → Server → Modules → Should see "iisnode"
- 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:
nodeProcessCommandLine="C:\Program Files\nodejs\node.exe"
Let iisnode use PATH to find Node.js.