IIS 7.0 - Default Web Site is not working

4

Just now I added IIS in my system. And I try to start Default Web Site in IIS. But it will throwing following error,

    The format of the specified network name is invalid (Exception from HRESULT:0x800704BE)

Here my Screen-shot,

enter image description here

So, I don't know what i did..? Then I fail to see how can I solve this problem.

How should I solve this exception?

asp.net
windows
iis
iis-7
webserver
asked on Stack Overflow Jan 24, 2018 by sathish anish

2 Answers

5

It may be because the IP 127.0.0.1 - localhost may not listen by computer

Check with below command in command prompt:

netsh http show iplisten

It should return the 127.0.0.1.

If it is not there then add it to using below command:

netsh http add iplisten 127.0.0.1

If the IP address is successfully added, you receive the following message: IP address successfully added.

answered on Stack Overflow Jan 24, 2018 by Mittal Patel
0

Please follow these steps to solve this issue:

1. Get currently listed IP:

netsh http show iplisten (this will list just one IP of your machine)

2. Delete old IP with this command:

netsh http delete iplisten ipaddress=11.22.33.44

(where 11.22.33.44 is the IP received from #1)

3. Next, set the service UP to listen to all the IPs:

netsh http add iplisten ipaddress=0.0.0.0

(if you dont want to open for all IPs then just pass single IP)

4. To make these changes reflected, Restart IIS using:

iisreset

answered on Stack Overflow Mar 19, 2018 by Mukesh Rajput • edited Jun 20, 2020 by Community

User contributions licensed under CC BY-SA 3.0