Previous Next

Thread: IIsProviderSnapIn loading problem

Last post 06-10-2008 1:45 AM by 13xforever. 4 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (5 items)

Sort Posts:

  • 05-27-2008, 4:56 AM

    IIsProviderSnapIn loading problem

    Hi, we have machine with Vista and IIS installed. Today we also have installed PowerShell 1.0 and IIS provider (all x86 versions).

    The problem is when we try to add IIS snap-in, we got this error:

    Attempting to perform the Start operation on the 'WebAdministration' provider failed. Method not found: 'Void Microsoft.Web.Administration.ServerManager..ctor(Boolean, System.String)'

    It's too strange, because the following command works just fine:

    PS C:\Users\admin> [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Web.Administration")

    GAC Version Location
    --- ------- --------
    True v2.0.50727 C:\Windows\assembly\GAC_MSIL\Microsoft.Web.Administration\7.0.0.0__31bf3856ad364e35\Microsoft....
  • 06-03-2008, 5:21 PM In reply to

    Re: IIsProviderSnapIn loading problem

    IS this how you are doing it

    PS>Add-PSSnapIn IIsProviderSnapIn ???  

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 06-04-2008, 4:35 AM In reply to

    Re: IIsProviderSnapIn loading problem

     Yes, exactly. As far as I know, there's no other way. And all other systems work with it well without any troubles. This error is happening on only one machine and is 100% reproduceable after re-installing of IIS, .NET and PowerShell / IIsProvider.

     PS:and yes, I know about IIsConsole.psc1, and I believe it's equivalent to Add-PSSnapin in that regard. (And it doesn't work, as you may guess).

  • 06-09-2008, 5:49 PM In reply to

    Re: IIsProviderSnapIn loading problem

    Requirements

    You must be using Windows Server 2008 (x86) or Windows Vista Service Pack 1 (x86) or later.

    • Internet Information Services 7.0 has to be installed.
    • Windows PowerShell 1.0 has to be installed.
    • You must install the IIS 7.0 PowerShell Provider as an administrator.
    Are all these satisfied???

     

    Regards,
    MA Khan
    http://www.iisworkstation.com

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 06-10-2008, 1:45 AM In reply to

    Re: IIsProviderSnapIn loading problem

     SP1 for Vista isn't a requirement at all, but still, yes, we have SP 1 installed. Also, IIS7 is comnig only with Vista and maybe with Server 2008 (didn't try it yet). Also, it's 32-bit version of OS, but honestly, at home I have 64-bit Vista version and it never coused any trouble.

    The problem is (I only can suspect) in the way IIsProvider loads and initialize IIS management assembles. Maybe they didn't register something, don't know, but it's strange, because, as I said it before, reinstallation of any component (IIS, .NET, PS and IIsPSProvider) didn't solve the issue.

    Also, loading and using management assembles is working, but it's not as easy to read and elegant as PS commands.

Page 1 of 1 (5 items)
Page view counter