Hi
Congratulations for the second CTP release!
I get an error when trying to create a new site on Vista SP1:
PS 8> New-WebSite -name test6
Name ID State Physical Path Bindings
---- -- ----- ------------- --------
test6 6 http *:80:test6
New-WebSite : The object identifier does not represent a valid object. (Exception from HRESULT: 0x800710D8)
At line:1 char:12
+ New-WebSite <<<< -name test6
Here's the full error information:
Exception : System.Runtime.InteropServices.COMException (0x800710D8): The object identifier does not repres
ent a valid object. (Exception from HRESULT: 0x800710D8)
at Microsoft.IIs.PowerShell.Framework.Interop.IAppHostProperty.get_Value()
at Microsoft.IIs.PowerShell.Framework.ConfigurationElement.GetPropertyValue(IAppHostProperty
property)
at Microsoft.IIs.PowerShell.Framework.ConfigurationAttribute.get_Value()
at Microsoft.IIs.PowerShell.Provider.RuntimeCommandBase.GetRuntimeProperty(String propName)
at Microsoft.IIs.PowerShell.Provider.GetItemStateCommand.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
TargetObject :
CategoryInfo : NotSpecified: (:) [New-WebSite], COMException
FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.IIs.PowerShell.Provider.NewWebSiteCommand
ErrorDetails :
InvocationInfo : System.Management.Automation.InvocationInfo
PipelineIterationInfo : {0, 1, 1}
I found that if you assign the command to a variable then the error is gone
$newSite = New-WebSite -name test6