Previous Next

Thread: remote programming

Last post 04-04-2008 2:31 AM by Super_Julius. 6 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (7 items)

Sort Posts:

  • 01-03-2008, 9:50 PM

    • bfundy01
    • Not Ranked
    • Joined on 09-02-2005, 11:24 PM
    • Posts 2
    • bfundy01

    remote programming

    From a windows 2003 server with .net framework 3.0 and 3.5 installed, I want to programatically manage web servers running windows 2008 using microsoft.web.administration.  To do this, I need to DLL obviously.   Is the correct procedure for doing this to simple copy and register the assembly on my windows 2003 server? 

  • 01-03-2008, 10:09 PM In reply to

    • qbernard
    • Top 10 Contributor
    • Joined on 03-26-2003, 2:12 AM
    • Malaysia
    • Posts 2,203
    • qbernard

    Re: remote programming

    Althought it uses .net framework, but I don't think it will works with the old metabase structure. but have you try it?

    Cheers,
    Bernard Cheah
  • 01-08-2008, 11:20 AM In reply to

    • bfundy01
    • Not Ranked
    • Joined on 09-02-2005, 11:24 PM
    • Posts 2
    • bfundy01

    Re: remote programming

    Perhaps this is unclear.  I want to manage IIS7 but to do so remotely using an existing windows 2003 server.  So I'm developing on a windows 2003 server but I want to control and manage a remote IIS7 server. 

     Here is where things stand, on my development windows 2003 server I've installed .net framework 3.5 and I copied over the management DLL's from the windows 2008 server.  To test I threw together a little console app and tried to create a website.  Here is the error which I'm not sure what to do with.

    System.Runtime.InteropServices.COMException was unhandled
      Message="Retrieving the COM class factory for component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} failed due to the following error: 80040154."
      Source="Microsoft.Web.Administration"
      ErrorCode=-2147221164

     Anyone have ideas on this?

  • 01-09-2008, 12:02 AM In reply to

    • qbernard
    • Top 10 Contributor
    • Joined on 03-26-2003, 2:12 AM
    • Malaysia
    • Posts 2,203
    • qbernard

    Re: remote programming

    Oh I get what you mean now. I'm not sure but per Calos's blog this is supported on Vista and W2k8 only.
    http://blogs.msdn.com/carlosag/archive/2006/04/17/MicrosoftWebAdministration.aspx

    Cheers,
    Bernard Cheah
  • 04-03-2008, 12:50 PM In reply to

    • Super_Julius
    • Not Ranked
    • Joined on 01-05-2004, 7:16 AM
    • Sophia-Antipolis, France
    • Posts 2
    • Super_Julius

    Re: remote programming

    I also have an exception when trying to use the ServerManager.OpenRemote method (see below)

    Well, it is actually thrown when I try to access the Sites collection but the ServerManager is not initialized anyway.

    I am running the code on a Windows XP SP2 computer. Can someone confirm if this should work on a XP box or if it will only work on Vista and Win2K8? BTW- the same code works properly on the server itself...

     

    Thanks, Julien

     **********

    Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Web.Administration.Interop.IAppHostWritableAdminManager'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{FA7660F6-7B3F-4237-A8BF-ED0AD0DCBBD9}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).

  • 04-03-2008, 1:20 PM In reply to

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

    Re: remote programming

    As bernard said above, this is only supported on vista sp1 and ws08.

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 04-04-2008, 2:31 AM In reply to

    • Super_Julius
    • Not Ranked
    • Joined on 01-05-2004, 7:16 AM
    • Sophia-Antipolis, France
    • Posts 2
    • Super_Julius

    Re: remote programming

    Thank you for your reply. I read bernard's answer but it did not sound like an assertion to me...

     "I'm not sure but per Calos's blog this is supported on Vista and W2k8 only"

    As he said, he was not sure and Carlos' blog article was written nearly 2 years ago...giving some hope on a wider support (especially with the IIS Manager now running on XP)

    A pity that it's not mentioned anywhere else but in a blog...I would have expected this to be stated in the MWA article on IIS.Net, or at least in the MSDN or Technet docs.

    Anyway, thanks for answering and hopes this will more clearly said for others!

Page 1 of 1 (7 items)
Page view counter