Solved ASP.NET Development Server not Working|Run ASP.NET Projects in Web Browser by editing hosts file


How to Solve ASP.NET Development Server Problems

ie error visual studio

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

To solve this issue follow the steps 
Step 1 : Open My Computer and click Organize and select Folder and search options
windows 7 folder option

Step 2 : Select view tab and select Show hidden files,folders and drives 
then click OK
windows 7 folder option

Step 3 : Goto C:WindowsSystem32driversetc 
select and Right click hosts and click open then select Notepad from the list
and click OK
open with notepad

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)
run as administrator windows 7

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) localhost

::1 localhost 

hosts file editing

Step 8 : Now select File -> Save as
notepad 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 
save as hosts file

Now enjoy creating good projects with ASP.NET

Thanks to Preston from


Please enter your comment!
Please enter your name here