Previous Next

Thread: appcmd list config returns ERROR

Last post 08-26-2008 9:16 PM by mukhtard. 5 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (6 items)

Sort Posts:

  • 08-26-2008, 1:51 PM

    • turleyd
    • Not Ranked
    • Joined on 08-04-2008, 4:14 PM
    • Posts 4

    appcmd list config returns ERROR

    I'm having trouble getting 'appcmd list config' to work on Windows 2008 Server Core.  When I run that command it returns ERROR ( hresult:80070490, message:Commad execution failed. Element not found. )

    I know this command worked yesterday because I watched it work.  Then I performed a re-install of Windows 2008 Server Core and IIS and now the command returns ERROR.  Other commands definitely work, such as 'appcmd list site' and 'appcmd set config "Default Web Site" -section:handlers -accessPolicy:Read,Script'

     Is this a permissions or security issue?  What's changed in the last couple of days??

  • 08-26-2008, 2:54 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: appcmd list config returns ERROR

    I'm note sure how the config got messed up, but the quickest way to resolve this is to re-install IIS.
    Can you uninstall IIS totally and then re-install it and see if you still see the problem?

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 08-26-2008, 2:57 PM In reply to

    • turleyd
    • Not Ranked
    • Joined on 08-04-2008, 4:14 PM
    • Posts 4

    Re: appcmd list config returns ERROR

    I've done more than uninstall IIS, I've completely reinstalled the OS too.  And I can reproduce it on another Core machine.  I have every single IIS package installed and the command still fails.

  • 08-26-2008, 4:50 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: appcmd list config returns ERROR

    There are certain features of IIS7 that are not available on Server Core edition. I think somehow they have gotten installed and the config system doesn't recognize them. Here is a good article that should explain this:

    http://blogs.iis.net/metegokt/archive/2007/06/26/administering-iis7-on-server-core-installations-of-windows-server-2008.aspx

    Thanks,
    Mukhtar Desai
    IIS Performance Team

  • 08-26-2008, 5:19 PM In reply to

    • turleyd
    • Not Ranked
    • Joined on 08-04-2008, 4:14 PM
    • Posts 4

    Re: appcmd list config returns ERROR

    How could packages that are not available on Server Core get installed?

     Here is the exact command I am using:
    start /WAIT pkgmgr /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-Security;IIS-RequestFiltering;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-HttpRedirect;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;IIS-IIS6ManagementCompatibility;IIS-Metabase;IIS-LegacyScripts;IIS-WMICompatibility;IIS-FTPPublishingService;IIS-FTPServer

  • 08-26-2008, 9:16 PM In reply to

    • mukhtard
    • Top 25 Contributor
    • Joined on 07-07-2008, 9:13 PM
    • Redmond, WA
    • Posts 165

    Re: appcmd list config returns ERROR

    I setup a clean Windows 2008 Server Core box and ran your pkgmgr command. I was able to run appcmd list config command without any problems. I rebooted the machine and reran the command just to make sure it works consistently.

    If you want I can send my copy of applicationHost.config and you can compare it against yours.

    Thanks,
    Mukhtar Desai
    IIS Performance Team

Page 1 of 1 (6 items)
Page view counter