« Previous Next »

Thread: Using Microsoft.Web.Administration.dll to administer IIS 6 servers

Last post 10-30-2009 1:20 PM by anilr. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 10-30-2009, 6:58 AM

    • jofanon
    • Not Ranked
    • Joined on 08-28-2009, 9:33 AM
    • Posts 4

    Using Microsoft.Web.Administration.dll to administer IIS 6 servers

    Hey,

    I have an IIS 7 webserver and I'm using it as a proxy using ARR.

    The downstream webservers are IIS 6 and I want to run admin scripts from the proxy (using ServerManager.OpenRemote) to these servers.  For example, recycling app pools that kind of thing.

    Can the Microsoft.Web.Administration.dll administer IIS 6 servers?

    When I run my code I get...

     System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine tes10web98 failed due to the following error: 80040154.
       at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
       at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
       at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
       at System.Activator.CreateInstance(Type type, Boolean nonPublic)
       at Microsoft.Web.Administration.ConfigurationManager.CreateWritableAdminManager(WebConfigurationMap webConfigMap, String configPathToEdit, Boolean isAdminConfig)
       at Microsoft.Web.Administration.ConfigurationManager.CreateConfiguration(WebConfigurationMap configMap, String configPathToEdit, Boolean isAdminConfig)
       at Microsoft.Web.Administration.ConfigurationManager.GetConfiguration(String rawConfigurationPath, String cacheKey, Boolean isAdminConfig)
       at Microsoft.Web.Administration.ServerManager.get_ApplicationPoolsSection()
       at Microsoft.Web.Administration.ServerManager.get_ApplicationPools()
       at IISAdminTools.Program.RecyleAppPools()
       at IISAdminTools.Program.Main(String[] args)

  • 10-30-2009, 7:18 AM In reply to

    • jofanon
    • Not Ranked
    • Joined on 08-28-2009, 9:33 AM
    • Posts 4

    Re: Using Microsoft.Web.Administration.dll to administer IIS 6 servers

    Or perhaps the DLL needs installing on the remote server?

  • 10-30-2009, 1:20 PM In reply to

    • anilr
    • Top 10 Contributor
    • Joined on 05-23-2006, 10:13 PM
    • Redmond, WA
    • Posts 2,343

    Re: Using Microsoft.Web.Administration.dll to administer IIS 6 servers

    No, Microsoft.Web.Administation can only admister to/from IIS7+ servers - you can install ABO compat on your IIS7 server and use ABO/ADSI to administer your IIS6 servers, or use WMI.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
Page 1 of 1 (3 items)
Microsoft Communities