hello every one..
im beginner in asp.net
i made a simple page and debug it
but it gave me that IE can not display the page
coz it is not connected with internet

although im connected to internet
and it must work on local host

any solutions ..?
thanks in advance

Dani AI

Generated

nailed the quick fix: the problem often comes from the hosts-file IPv6 loopback entry being preferred over IPv4, while the ASP.NET development server (or older Cassini) is only listening on IPv4. When the name "localhost" resolves to the IPv6 loopback address the browser tries IPv6 and the server never answers, so IE reports "cannot display the web page."

Quick checks and fixes you can apply right away:

  • Force an IPv4 test to see where localhost resolves:

    ping -4 localhost
  • Use the explicit IPv4 loopback in the browser as a quick workaround (for example http://127.0.0.1:yourPort).

  • After making hosts-file edits, clear the resolver cache:

    ipconfig /flushdns

Practical edit notes: back up the system hosts file and edit it with administrator privileges. Commenting the IPv6 loopback entry (what did) is a fast, pragmatic fix for local development. Alternatively, configure your dev server (IIS Express or full IIS) to listen on IPv6 as well or bind explicitly to the IPv4 loopback so name resolution and service bindings match.

Cautions and extras: do not permanently disable IPv6 system-wide just to fix local dev issues. Also check for local firewall rules blocking the dev-server port and restart the browser after changes. If using a newer setup, check your web server's binding settings (applicationhost.config or project properties) so the server accepts connections on the address family you intend to use.

i searched for the solution
The solution was removing the next line in the windows host file C:\Windows\System32\drivers\etc\hosts

::1 localhost

This is an IpV6 entry. Put a # in front of it.
comment it

after that it works..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.