I've just rebuilt my development machine and installed IIS. I then installed the Web Deployment tool and used this to restore my previously-backed-up websites to the clean machine. Unfortunately the restoration didn't work correctly/fully.
I couldn't easily correct the problem, so I decided to uninstall/reinstall IIS and recreate the sites manually.
I uninstalled IIS and rebooted, but there was still plenty of stuff left around such as various files in /windows/system32/inetsrv/
which I tried to delete manually (with limited success!).
I rebooted again and tried to reinstall IIS - it reported an error (no meaningful message) and requested another reboot. The event log includes the following errors:
The World Wide Web Publishing Service (WWW Service) did not register the URL prefix http://*:80/gallery for site 1. The site has been disabled.
and
Unable to bind to the underlying transport for [::]:80. The IP Listen-Only list may contain a reference to an interface which may not exist on this machine.
I'd like to avoid another rebuild. Can I completely remove IIS, such that I can reinstall it from scratch? Or can I 'fix' the current setup so that IIS will reinstall over what is already there?
This is not IIS Installation issue. Check this article KB 890015. Check the registry key
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP\Parameters
by default there is noListenOnlyList
I finally managed to delete the conetents
INETSRV
folder, thanks to this page:http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-system-file-in-windows-vista/
I actually had to modify the
cacls
command slightly to handle folders rather than files (/T switch, if I recall correctly).Once the folder was cleared, IIS could be reinstalled successfully.