'Localhost only shows blank screen. How can I fix it?
I've done this procedure many times before. I created a new pool in IIS, add an application to Default Website and configured its settings. However this time I cannot connect to the localhost. It doesn't even show any error for starters...Just a blank screen...as simple as that.
I've done anything that had come to my mind(IISReset, stopping and restarting pool and Default Website, restarting the computer, etc.) but it wasn't useful. Please help me, how can I fix it?
Additional info: Windows 7 SP1 IIS version 7.5.7600.16385 Pool info: ASP.net Version 4.0, Intergrated
Also I'm working with C#.
Solution 1:[1]
For me it helped to switch to master branch in my project, remove angular.json and package-lock.json files, then run npm install and npm start for my front-end project. Then I switched back to my branch and did the same. It's very weird stuff but it helped.
The other thing that helped is changing port for localhost in package.json:
"start": "node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng serve --aot --port=8080",
Solution 2:[2]
I had the same problem. you can fix it by this solution:
1.Go to Control Panel
2.Select Programs and Features
3.Select Turn windows features on or off
4.check all IIS services components as below:
5.then go Internet Information Services (IIS) from start menu
6.from the right panel (Action menu) select Restart
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | morteza karimian kelishadrokhi |

