Previous Next

Thread: ServerManager.OpenRemote from workgroup machine

Last post 07-01-2008 4:29 PM by superevanc. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-27-2008, 9:33 AM

    ServerManager.OpenRemote from workgroup machine

    Hi, this is probably a DCOM issue more than anything else but maybe someone here can help me out.  I am writing code to manage iis7 running on w2k8.  The code is running from either a vista box or another w2k8 box.  Both these other boxes have iis7 installed too.

    I am not on a domain, all the computers are in the same workgroup.  All the computers have the same user/password combo.

    I get this security error when I try and make any configuration changes after OpenRemote is called:

    Retrieving the COM class factory for remote component with CLSID {2B72133B-3F5B-4602-8952-803546CE3344} from machine [MACHINE NAME] failed due to the following error: 80070005

    Does anyone have any idea on what I need to set up so that I can use OpenRemote in this manner?
     

  • 06-30-2008, 2:10 PM In reply to

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

    Re: ServerManager.OpenRemote from workgroup machine

    Is your application running as an elevated admin?

    Anil Ruia
    Senior Software Design Engineer
    IIS Core Server
  • 07-01-2008, 4:29 PM In reply to

    Re: ServerManager.OpenRemote from workgroup machine

    Yup.  I actually got this working after following the steps outlined here: http://mvolo.com/blogs/serverside/archive/2008/05/26/Accessing-IIS-7.0-configuration-remotely-and-on-server-core.aspx

    I have however run into a different problem.  The processes that I am developing may be run from a user account that does not have the same name, but may be in the administrator group.  For example if I launch my program on my Vista box the user is Evan.  If I run the program from a w2k8 box the user is Administrator.  After following the above steps I can get everything to work from Administrator.  When using the Evan account I am trying to impersonate Administrator.  I have been having issues impersonating Administrator in vista with LogonUser. Haven't had to much time to dig into exactly what is going on though. 

Page 1 of 1 (3 items)
Page view counter