How to Solve ASP.NET Development Server Problems
The below tutorial guides you to solve the ASP.NET development server problem by editing your hosts file. When you started creating your first web application with ASP.NET most of the users get this error, when you start Debugging your project in your web browsers.
Internet Explorer cannot display the webpage
Oops! Google Chrome could not find localhost:52591
Step 1 : Open My Computer and click Organize and select Folder and search options
Step 2 : Select view tab and select Show hidden files,folders and drives
then click OK
Step 3 : Goto C:WindowsSystem32driversetc
select and Right click hosts and click open then select Notepad from the list
and click OK
Step 4 : Now select all the entries in the hosts file by pressing Ctrl + A
then press Ctrl + C to copy all the data inside the hosts file
Step 5 : Now click start button in windows 7 and search for Notepad then Right click on the Notepad icon and select Run as administrator (this is important)
Step 6 : Now press Ctrl + V to paste all the information you copied from the hosts file
Step 7 : Now make a new line anywhere inside the document and add the following entries
(Adding ::1 localhost is not necessary its used in IPV6)
127.0.0.1 localhost
::1 localhost
Step 8 : Now select File -> Save as
Step 9 : Select C:WindowsSystem32driversetc as your location
Select All files from the file type list
Type name as hosts
Now click save
Click yes to overwrite the file
Now enjoy creating good projects with ASP.NET
Thanks to Preston from forum.asp.net