docker-archive / communitytools-image2docker-win

305 stars 78 forks source link

Property add cannot be found #68

Open automatecloud opened 7 years ago

automatecloud commented 7 years ago

When doing an IIS Docker2 Image I'm getting a lot of Property "add" cannot be found inside the Verbose output:

ConvertTo-Dockerfile -ImagePath D:\disk\DEV-SRV-N1.VHDX -Artifact iis -OutputPath C:\i2d2 -Verbose ... VERBOSE: Checking IIS ApplicationHost config for Windows Version: 10.0 Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplicationHost.ps1:94 char:103

VERBOSE: Target Image Version 10.0.14393.1561

marcelcamargo commented 6 years ago

Were you able to resolve this error? I have the same problem, help me.

JohanSpannare commented 5 years ago

Same problem here! Same error locally and remotely.

PS D:> ConvertTo-Dockerfile -Local -Artifact IIS -OutputPath d:\IISDocker -ArtifactParam "CMS/CMS.Manager" -Verbose VERBOSE: Using local drive: C: VERBOSE: Starting conversion process VERBOSE: Started discovering IIS artifact VERBOSE: Checking IIS ApplicationHost config for Windows Version: 6.1 Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplica tionHost.ps1:94 char:103

  • ... elect-Object -ExpandProperty Node | Select-Object -ExpandProperty add
  • 
    + CategoryInfo          : InvalidArgument: (handlers:PSObject) [Select-Object], PSArgumentException
    + FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand

Select-Object : Property "add" cannot be found. At C:\Program Files\WindowsPowerShell\Modules\Image2Docker\1.8.5\Functions\Private\Artifacts\IIS\GetManifestFromApplica tionHost.ps1:94 char:103

  • ... elect-Object -ExpandProperty Node | Select-Object -ExpandProperty add
  • 
    + CategoryInfo          : InvalidArgument: (handlers:PSObject) [Select-Object], PSArgumentException
    + FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
m2f0 commented 5 years ago

Same error here. Someone knows what happens?

m2f0 commented 5 years ago

I think that this is a dumb question, or this issue was forgot by the devs.

marcelcamargo commented 5 years ago

i'm waiting...

m2f0 commented 5 years ago

I discovered that some user policies can generate some erros. The script doesn't have errors treatment. I recommend that:

timrenshaw commented 5 years ago

I am having the same issue... is there any update?