Tech Off Thread

4 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Configuring IIS6 with VB.NET

Back to Forum: Tech Off
  • User profile image
    lethalbyte

    I need to write a very small tool to allow sales staff to add web sites to IIS6.0 from within a VB.NET (2005) app.  Can someone point me in the direction of the best technology to do this... I've been trying to use the DirectoryServices namespace, but keep getting Access Denied errors when I point it to a remote server.

    Any clues?

    Thanks a lot,

    Paul

  • User profile image
    W3bbo

    lethalbyte wrote:
    I've been trying to use the DirectoryServices namespace, but keep getting Access Denied errors when I point it to a remote server


    That's how you're meant to be doing it.

    Just ensure that the ASP.NET process your application is running under (or the ASP.NET Application itself) has full Administrative rights.

  • User profile image
    lethalbyte

    It's actually a winforms app I'm writing?  Is there anything special I need to do for this?  My windows account is a member of the admin group on the server, if that's of any use.

    Thanks,

    Paul

  • User profile image
    dotnetjunkie

    Aw!

    You should do this with WMI !!!
    That's the recommended and much more powerful way for IIS 6.0!
    And the way to go forward.

    It's also fairly easy, you find lots of examples in the WMI reference.

    The namespace you need is System.Management

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.