I’m testing my node application but I’m getting error while runnig with IIS. When i start do npm start it’s working fine but when i start running with IIS then I’m getting error. I added application pool permissions (IUSER, IIS_USER, Nerwork Service and Everyone).
I’m getting error while runnig with IIS. When i start do npm start it’s working fine but when i start running with IIS then I’m getting below error. I added application pool permissions (IUSER, IIS_USER, Nerwork Service and Everyone).
I ran net stop winnat, net start winnat and did restart of host network service but no luck.
Run on command:
C:sitestest>npm start
[email protected] start
node index.js
Server started on port 8082
Run on IIS:
Application has thrown an uncaught exception and is terminated:
Error: listen EACCES: permission denied 0.0.0.0:8082
at Server.setupListenHandle [as _listen2] (node:net:1881:21)
at listenInCluster (node:net:1946:12)
at Server.listen (node:net:2044:7)
at Function.listen (C:sitesdev-node-open-ainode_modulesexpresslibapplication.js:635:24)
at Object. (C:sitesdev-node-open-aiindex.js:60:5)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Module.require (node:internal/modules/cjs/loader:1233:19)
You need to see which user is running your application pool, which may cause the issue.
Usually it’s the ApplicationPoolIdentity
.
Navigate to your relevant application pool -> right click – advanced settings and look for the identity running the pool.