Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-8467

puppetlabs-iis : Get-WebApplication error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: iis
    • Labels:
      None
    • Template:
      MODULES Bug Template
    • Method Found:
      Needs Assessment
    • QA Risk Assessment:
      Needs Assessment

      Description

      Basic Info
      Module Version: puppetlabs-iis: 4.5.0
      Puppet Version: 5.5.8
      OS Name/Version: windows server 2008r2/2012

      create an application, will get error 

      Error: Failed to apply catalog: 751: unexpected token at Get-WebConfiguration

      it probably gets error when running getapps.ps1.erb.

      this script will get all sites's applications. but sometimes some old application profile already is broken. E.g files(web.config) already deleted, the application still exists. the powershell will popup Error: Cannot read configuration file. 

      so, anyway I can bypass those errors

      error msg like this:

      Get-WebConfiguration : Filename: \\?\D:\test\web.config
      Error: Cannot read configuration file
      At C:\Users\test\getapps.ps1:9 char:28
      + $sslFlags_raw = [String](Get-WebConfiguration -Location "${site}/${name}" -Fil ...
      + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo : NotSpecified: ( [Get-WebConfiguration], DirectoryNotFoundException
      + FullyQualifiedErrorId : System.IO.DirectoryNotFoundException,Microsoft.IIs.PowerShell.Provider.GetConfigurationCommand

      Desired Behavior: create application success

      Actual Behavior: powershell Get-WebConfiguration popup error

      Please take a moment and attach any relevant log output and/or manifests. This will help us immensely when troubleshooting the issue.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            kenma ken ma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Zendesk Support