Previous Next

Thread: WinVistaHomePrem and IIS 7.0 can't get to http:/localhost

Last post 09-17-2008 2:00 AM by mukhtard. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 09-16-2008, 9:25 PM

    WinVistaHomePrem and IIS 7.0 can't get to http:/localhost

    Hi

    Newbie to IIS and stuck for 4 days now.  4 days ago upgraded to Windows Home Premium 32x.  Undertook to turn on IIS 7.0 according to IIS article discussed in multiple threads here, articles on other forums, and I have referenced a couple of books. 

    On the first install, I tried to load DNN and worry I may have made changes to IIS which are not being cleared out.  When I remove IIS, I use an application - the name's not in my notes and the machine is at home.   

    No matter what I do, load & unload IIS, change settings, etc., I can't get to http://localhost.  I get the following error:  

    -  HTTP Error 500.19 - Internal Server Error

    -  0x800700b7

    -  Cannot add duplicate collection entry of type 'add' with unique key attribute 'value' set to 'Default.aspx'. 

    I found a MSFT help page on the 0x80700b7 but that had me changing the config file which I followed a few steps, saving the original, and ended up getting a number of other errors every time I made changes according to the help file so I gave up and reloaded the original config file.

    No firewall other than what's native to VISTA.

    Any thoughts greatly appreciated.  Thanks, ipcalifornia.

  • 09-17-2008, 2:00 AM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: WinVistaHomePrem and IIS 7.0 can't get to http:/localhost

    Looks like your config is messed up. What I mean is as the message implies you have an duplicate entry in your IIS configuration file where only uniques are allowed. Looks like some install manually(may be using XML API's) updated the config file. IIS config API's will not allow this to happen.

    To resolve this you can either manually edit the configuration file OR uninstall and reinstall IIS. To manually edit the configuration file, from an elevated command prompt:

    notepad %systemroot%\system32\inetsrv\config\applicationhost.config

    Search for "<defaultDocument" in the file. You should see <files> section just under the <defaultDocument> section. Under <files> you will see two entries for <add value="Default.aspx" />. Delete one entry, save the file and try requesting http://localhost.

    Make sure to make a copy of your applicationHost.config file before editing it manually.

    Thanks,
    Mukhtar Desai
    IIS Performance Team

Page 1 of 1 (2 items)
Page view counter