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.
-
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 -
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
Thread Closed
This thread is kinda stale and has been closed but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.