Posted By: lethalbyte | Dec 9th, 2005 @ 3:46 PM
page 1 of 1
Comments: 3 | Views: 2413
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
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.

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

page 1 of 1
Comments: 3 | Views: 2413