sergejusb/DotNetGroup — Issue #2: IISSetup.ps1 didn't fully work for me
Author: mmozuras
Created: 2012-02-23 19:01:25+00:00
State: open

It updates the hosts file, but fails to create the site. I'm running it as Administrator, ran ImportSystemModules etc. Here's the error output:

```powershell
Test-Path : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for compo
nent 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:\Users\I5\Desktop\DotNetGroup\IISSetup.ps1:59 char:7
+ if ((Test-Path -path $fullSitePath) -ne $True)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Test-Path], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.TestPathCommand

The hosts file already contains the entry: 127.0.0.1 api.dotnetgroup.dev. File not updated.
Test-Path : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for compo
nent 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:\Users\I5\Desktop\DotNetGroup\IISSetup.ps1:59 char:7
+ if ((Test-Path -path $fullSitePath) -ne $True)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Test-Path], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.TestPathCommand

The hosts file already contains the entry: 127.0.0.1 dotnetgroup.dev. File not updated.
Test-Path : Cannot retrieve the dynamic parameters for the cmdlet. Retrieving the COM class factory for compo
nent 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:\Users\I5\Desktop\DotNetGroup\IISSetup.ps1:59 char:7
+ if ((Test-Path -path $fullSitePath) -ne $True)
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Test-Path], ParameterBindingException
+ FullyQualifiedErrorId : GetDynamicParametersException,Microsoft.PowerShell.Commands.TestPathCommand

The hosts file already contains the entry: 127.0.0.1 m.dotnetgroup.dev. File not updated.```