Sitecore 9: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))

I'm working through my first Sitecore 9 installation, and ran into a rookie mistake I wanted to share.

I set up an install script and ran it in PowerShell, but in the CreateAppPool section I hit an error:

[------------------------------------------- CreateAppPool : AppPool -------------------------------------------------]
Install-SitecoreConfiguration : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class
factory for component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At D:\sc9\install.ps1:45 char:1
+ Install-SitecoreConfiguration @xconnectParams
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration
[TIME] 00:00:01
Transcript stopped, output file is D:\sc9\xconnect-xp0.180128.log
Invoke-AppPoolTask : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for
component with CLSID {688EEEE5-6A7E-422F-B2E1-6AF00DC944A6} failed due to the following error: 80040154 Class not
registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At C:\Program Files
(x86)\WindowsPowerShell\Modules\SitecoreInstallFramework\1.1.0\Public\Install-SitecoreConfiguration.ps1:253 char:21
+                     & $entry.Task.Command @paramSet | Out-Default
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo           : InvalidArgument: (:) [Invoke-AppPoolTask], ParameterBindingException
    + FullyQualifiedErrorId  : GetDynamicParametersException,Invoke-AppPoolTask

The solution was pretty easy to figure out - I accidentally ran the 32-bit version of PowerShell, but my o/s is 64-bit. All I had to do was start the 64-bit PowerShell, and I was back on track again. Hope this saves someone a little bit of troubleshooting time.

~David

Add comment

Loading