Share via


Back to installation issues

Recently I encountered two issues related to IIS 7 installation and would like to share my findings. In both the scenarios, IIS7.log and CBS.log helped a lot to find the actual cause of issue.

 

Problem 1:

 

We are trying to install IIS on Windows 2008 server but it fails with following error message:

 

Attempt to install IIS Management console failed with error code 0x80070643. Fatal error during installation

Attempt to install Directory browsing failed with error code 0x80070643. Fatal error during installation

Attempt to install HTTP logging failed with error code 0x80070643. Fatal error during installation

Attempt to install HTTP errors failed with error code 0x80070643. Fatal error during installation

Attempt to install Static content failed with error code 0x80070643. Fatal error during installation

Attempt to install Request monitoring failed with error code 0x80070643. Fatal error during installation

Attempt to install Static content compression failed with error code 0x80070643. Fatal error during installation

Attempt to install Default Document failed with error code 0x80070643. Fatal error during installation

Attempt to install Request filtering failed with error code 0x80070643. Fatal error during installation

 

We are able to install WAS service but IIS installation fails everytime. In such scenario, CBS.log is the thing to look for:

 

We had "SystemDrive" environment variable with a value of C:\, this was being used trying to set the Shortcut for the IIS manager Administrative Tools.

 

2011-04-13 16:08:13, Error CSI 00000003 (F) Logged @2011/4/13:15:08:13.775 : [ml:226{113},l:224{112}]"Installing shortcut {c:\\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\IIS Manager.lnk}"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000004 (F) Logged @2011/4/13:15:08:13.775 : [ml:134{67},l:132{66}]"Setting target path to [%SystemRoot%\system32\inetsrv\InetMgr.exe]"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000005 (F) Logged @2011/4/13:15:08:13.806 : [ml:146{73},l:144{72}]"Setting description to [@%SystemRoot%\system32\inetsrv\InetMgr.exe,-102]"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000006 (F) Logged @2011/4/13:15:08:13.806 : [ml:138{69},l:136{68}]"Setting icon location to [%SystemRoot%\system32\inetsrv\InetMgr.exe]"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000007 (F) Logged @2011/4/13:15:08:13.837 : [ml:186{93},l:184{92}]"Setting localized name via SHSetLocalizedName to [%SystemRoot%\system32\inetsrv\InetMgr.exe]"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000008 (F) Logged @2011/4/13:15:08:13.837 : [ml:142{71},l:140{70}]"Failed to Set Localized Name using SHSetLocalizedName(..) (0x80070057)"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000009@2011/4/13:15:08:13.837 (F) CMIADAPTER: Inner Error Message from AI HRESULT = E_INVALIDARG

[

[29]"The parameter is incorrect."

]

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 0000000a@2011/4/13:15:08:13.837 (F) CMIADAPTER: AI failed. HRESULT = E_INVALIDARG

Element:

[418]"<shortCut xmlns="urn:schemas-microsoft-com:asm.v3" arguments="" destinationPath="$(runtime.startMenu)\Programs\Administrative Tools" destinationName="IIS Manager.lnk" targetPath="$(runtime.system32)\inetsrv\InetMgr.exe" iconPath="$(runtime.system32)\inetsrv\InetMgr.exe,0" windowStyle="normal" description="@$(runtime.system32)\inetsrv\InetMgr.exe,-102" displayResource="$(runtime.system32)\inetsrv\InetMgr.exe,101" />"

[gle=0x80004005]

2011-04-13 16:08:13, Error CSI 00000128@2011/4/13:15:08:13.837 (F) d:\rtm\base\wcp\cmiadapter\installers.cpp(356): Error E_INVALIDARG originated in function Windows::WCP::CmiAdapter::CMIWrapperBasicInstaller::ResolveAndInvokeInstaller expression: hr

[gle=0x80004005]

2011-04-13 16:08:15, Error CSI 0000000b@2011/4/13:15:08:15.927 (F) CMIADAPTER: Exiting with HRESULT code = E_INVALIDARG.

[gle=0x80004005]

2011-04-13 16:08:15, Error CSI 00000129@2011/4/13:15:08:15.927 (F) d:\rtm\base\wcp\cmiadapter\installers.cpp(123): Error E_INVALIDARG originated in function Windows::WCP::CmiAdapter::CMIWrapperBasicInstaller::Install expression: hr

[gle=0x80004005]

 

Resolution: Deleted this "SystemDrive" variable from the system environment variables and reinstalled IIS.

 

 

Problem 2:

 

We are trying to install ODBC logging role service on IIS 7 and it fails with following error message:

 

Attempt to install ODBC Logging failed with error code 0x80070643

 

In IIS7.log we found that the components are getting installed but there is a failure while writing to the configuration file. The installation rolls back due to this.

 

 

[04/20/2011 15:42:23] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:23] "C:\Windows\System32\inetsrv\iissetup.exe" /install ODBCLoggingBinaries

[04/20/2011 15:42:23] Install of component ODBCLoggingBinaries succeeded!

[04/20/2011 15:42:23] Success!

[04/20/2011 15:42:23] [ End of IIS 7.0 Component Based Setup ]

[04/20/2011 15:42:23] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:23] "C:\Windows\System32\inetsrv\iissetup.exe" /install ODBCLogging

[04/20/2011 15:42:23] Install of component ODBCLogging succeeded!

[04/20/2011 15:42:23] Success!

[04/20/2011 15:42:23] [ End of IIS 7.0 Component Based Setup ]

[04/20/2011 15:42:23] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:23] "C:\Windows\System32\inetsrv\iissetup.exe" /launch C:\Windows\System32\inetsrv\appcmd.exe reset config -section:system.webServer/odbcLogging

[04/20/2011 15:42:23] Launching command C:\Windows\System32\inetsrv\appcmd.exe, with params C:\Windows\System32\inetsrv\appcmd.exe reset config -section:system.webServer/odbcLogging

[04/20/2011 15:42:24] < !!FAIL!! > LaunchCommand result=0x80070005

[04/20/2011 15:42:24] [ End of IIS 7.0 Component Based Setup ]

[04/20/2011 15:42:26] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:26] "C:\Windows\WinSxS\amd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.0.6002.18005_none_6ef387546a5193ce\iissetup.exe" /uninstall ODBCLogging

[04/20/2011 15:42:26] Uninstall of component ODBCLogging succeeded!

[04/20/2011 15:42:26] Success!

[04/20/2011 15:42:26] [ End of IIS 7.0 Component Based Setup ]

[04/20/2011 15:42:26] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:26] "C:\Windows\WinSxS\amd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.0.6002.18005_none_6ef387546a5193ce\iissetup.exe" /launch_uninstall C:\Windows\System32\inetsrv\appcmd.exe clear config -section:system.webServer/odbcLogging

[04/20/2011 15:42:26] Launching command C:\Windows\System32\inetsrv\appcmd.exe, with params C:\Windows\System32\inetsrv\appcmd.exe clear config -section:system.webServer/odbcLogging

[04/20/2011 15:42:27] < !!FAIL!! > LaunchCommand result=0x80070005

[04/20/2011 15:42:27] [ End of IIS 7.0 Component Based Setup ]

[04/20/2011 15:42:27] [ ***** IIS 7.0 Component Based Setup ***** ]

[04/20/2011 15:42:27] "C:\Windows\WinSxS\amd64_microsoft-windows-iis-sharedlibraries_31bf3856ad364e35_6.0.6002.18005_none_6ef387546a5193ce\iissetup.exe" /uninstall ODBCLoggingBinaries

[04/20/2011 15:42:27] Uninstall of component ODBCLoggingBinaries succeeded!

[04/20/2011 15:42:27] Success!

[04/20/2011 15:42:27] [ End of IIS 7.0 Component Based Setup ]

 

Resolution: We found that shared configuration is enabled on the server and the applicationhost.config file is located on a remote share. Since we are trying to install the ODBC component only on this server and it should not change anything on other servers in the web farm, we disabled shared configuration and then installed the component.

 

This article relates somewhat to the issue we were facing:

https://learn.iis.net/page.aspx/638/installing-iis-modules-in-shared-configuration-environments/

 

 

Problem 3:

We are trying to install “IIS 6 Management Compatibility” web role service, but it fails with message “installation failed” and “the server needs to be restarted to undo the changes.” We are able to install other web role services for IIS and the issue is limited to “IIS 6 Management Compatibility”.

Again looking into IIS7.log, we see

[03/26/2013 13:42:56] < !!FAIL!! > MB::SetData result=0x8009000f

[03/26/2013 13:42:56] < !!FAIL!! > METABASE_UTIL::InstallIisAdminMetabaseEntries result=0x8009000f

[03/26/2013 13:43:02] Successfully stopped IISADMIN.

[03/26/2013 13:43:02] Successfully installed legacy snapin metabase entries.

[03/26/2013 13:43:02] Successfully started IISADMIN.

[03/26/2013 13:43:02] < !!FAIL!! > Install of component Metabase result=0x8009000f

[03/26/2013 13:43:02] < !!FAIL!! > COMPONENT::ExecuteCommand result=0x8009000f 

 

Resolution: This is mostly because of permissions issue on MachineKeys folder. Use Process Monitor to identify the missing permissions.

Hint: Make sure System account have full control on these two keys:

C:\ProgramData\Microsoft\Crypto\RSA\Machinekey\7a43*

C:\ProgramData\Microsoft\Crypto\RSA\Machinekey\c231*

Comments