You may come across this error when installing the password registration and reset portals on a dedicated server in order to provide role separation, especially when publishing the portals externally.
When you go through the installation wizard it may fail with the following message:
Cannot connect to Internet Information Server. (-2147221164 )
Additionally in the event log you will find Event id 10005:
Product: Forefront Identity Manager Service and Portal — Error 26001. Cannot connect to Internet Information Server. (-2147221164 )
This is actually just that not all the IIS features required for the role have been installed, the error messages aren’t very helpful with identifying this. In order to ensure all required IIS features are installed please reference the following link http://technet.microsoft.com/en-us/library/gg637901(v=ws.10).aspx